Skip to content

Commit

Permalink
deploy: e3e1830
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Feb 12, 2024
1 parent efb1a55 commit 10d9a84
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 48 deletions.
Binary file modified img/githubapp1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/githubapp4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions oauth2.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ <h2 id="table-of-content"><a class="header" href="#table-of-content">Table of co
<li><a href="oauth2/bitbucket.html">Bitbucket Setup</a></li>
</ul>
<h2 id="base-configuration-reference"><a class="header" href="#base-configuration-reference">Base configuration reference</a></h2>
<p>To enable OAuth2 integrations you need to add following configuration </p>
<p>To enable OAuth2 integrations, you need to add the following configuration </p>
<pre><code class="language-yml">packeton:
integrations:
github: # Alias name
Expand Down Expand Up @@ -292,8 +292,8 @@ <h3 id="gitlab"><a class="header" href="#gitlab">GitLab</a></h3>
<h4 id="gitlab-groups-webhooks-notices"><a class="header" href="#gitlab-groups-webhooks-notices">GitLab Groups Webhooks notices</a></h4>
<p>A group webhooks needed for synchronization a new package.
They are triggered by events that occur across all projects in the group.
This feature enabled only for Premium / EE / Gold paid plan, but it can be replaced with GitLab Packagist Integration</p>
<p>You must manually setup this integration.</p>
This feature is enabled only for Premium / EE / Gold paid plan, but it can be replaced with GitLab Packagist Integration</p>
<p>You must manually set up this integration.</p>
<p><a href="img/gitlab.png"><img src="img/gitlab.png" alt="Gitlab" /></a></p>
<p>Where token you can find on the packeton integration view page. The token must have <code>whk</code> prefix
to find related integration access token.</p>
Expand Down
6 changes: 3 additions & 3 deletions oauth2/github-oauth.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ <h1 id="github-oauth2-setup"><a class="header" href="#github-oauth2-setup">GitHu
<p>Go to you GitHub account Settings / Developer settings (<code>https://github.com/settings/developers</code>) and select &quot;New OAuth App&quot;</p>
<p>Use the packeton host as &quot;Callback URL / Redirect URL&quot;. For example <code>https://packeton.example.org</code></p>
<p><a href="../img/github-oauth2.png"><img src="../img/github-oauth2.png" alt="Groups" /></a></p>
<p>Use obtained <code>clinent_id</code>, <code>client_secret</code> to create configuration in yaml. For docker installation you may use <code>config.yaml</code> file in docker volume.</p>
<p>Use obtained <code>client_id</code>, <code>client_secret</code> to create configuration in yaml. For docker installation you may use <code>config.yaml</code> file in docker volume.</p>
<pre><code class="language-yaml">packeton:
integrations:
github: # any alias name
Expand All @@ -161,8 +161,8 @@ <h1 id="github-oauth2-setup"><a class="header" href="#github-oauth2-setup">GitHu
client_id: 'xxx'
client_secret: 'xxx'
</code></pre>
<p>Now go to Packeton integration page and click Install Integration. You will see list of available integrations and its Redirect Urls</p>
<p>Click to Connect to set up oauth2 credentials</p>
<p>Now go to Packeton integration page and click Install Integration. You will see a list of available integrations and its Redirect Urls</p>
<p>Click to <code>Connect</code> to set up oauth2 credentials.</p>
<p><a href="../img/github-connect.png"><img src="../img/github-connect.png" alt="Groups" /></a></p>

</main>
Expand Down
46 changes: 29 additions & 17 deletions oauth2/githubapp.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,30 @@ <h1 class="menu-title">Packeton Docs</h1>
<div id="content" class="content">
<main>
<h1 id="github-app-integration"><a class="header" href="#github-app-integration">GitHub App Integration</a></h1>
<p>GitHub App Integration is alternative of GitHub OAuth2. To create GitHub go to
Settings / Developer settings / GitHub Apps and click New GitHub App.</p>
<p>Use the next &quot;Callback URL / Redirect URL&quot;.</p>
<p>Redirect Urls:</p>
<pre><code>https://example.com/oauth2/{alias}/install
https://example.com/oauth2/{alias}/check
<p>GitHub App Integration is alternative of GitHub OAuth2.
To create GitHub go to: Settings / Developer settings / GitHub Apps and click <code>New GitHub App</code>.</p>
<ul>
<li>Enter a GitHub App name: Private Packeton.</li>
<li>Enter a homepage url: https://packeton.example.com for example.</li>
<li>Click <code>Add Callback URL</code> and use the next &quot;Callback URL / Redirect URL&quot;.</li>
</ul>
<pre><code>https://packeton.example.com/oauth2/{alias}/install
https://packeton.example.com/oauth2/{alias}/check
</code></pre>
<p>The webhooks URL maybe any. We don't use it and setup webhooks per repository or choice organization.</p>
<p>Select Permissions: </p>
<ul>
<li>Webhooks read-write (Repository permissions)</li>
<li>Metadata (Repository permissions)</li>
<li>Pull requests read-write (Repository permissions)</li>
<li>Webhooks read-write (Organization permissions)</li>
<li>Members read (Organization permissions) - optional</li>
<li>Uncheck webhook active checkbox</li>
</ul>
<p>Select Repository permissions:</p>
<ul>
<li>Content: read-only </li>
<li>Webhooks: read-write</li>
<li>Metadata: read-only (already selected)</li>
<li>Pull requests read-write </li>
</ul>
<p>Select Organization permissions:</p>
<ul>
<li>Webhooks: read-write</li>
<li>Members: read (optional)</li>
</ul>
<p><a href="../img/githubapp1.png"><img src="../img/githubapp1.png" alt="Img" /></a></p>
<p>After creating App go to App view page and find <code>app_id</code> and generate a &quot;Private Key&quot;</p>
Expand All @@ -178,12 +187,15 @@ <h1 id="github-app-integration"><a class="header" href="#github-app-integration"
private_key: '/data/packeton-key.pem'
app_id: 340120
</code></pre>
<p>When you must install GitHub App in you Github Account. Go to public App page, like <code>https://github.com/apps/{name}</code>
and click configure. Select you organization or own account.</p>
<p>When you must install GitHub App in your GitHub Account. </p>
<p>Go to public App page, like <code>https://github.com/apps/{name}</code> and click configure.
Select your organization or own account.</p>
<p><a href="../img/githubapp2.png"><img src="../img/githubapp2.png" alt="Img" /></a></p>
<p>After install you will see <code>installation_id</code> on URL address. For example <code>https://github.com/settings/installations/38069000</code></p>
<p>Now go to Packeton integration page and click Install Integration. When click to Connect under you githubapp configuration.</p>
<p>To finish setup Go to Packeton integration view page / Settings and provider <code>installation_id</code> in the form</p>
<p>Now go to Packeton <code>integration</code> page and click <code>Install Integration</code>.
When click to <code>Connect</code> under you <code>github</code> configuration.</p>
<p><a href="../img/githubapp4.png"><img src="../img/githubapp4.png" alt="Img" /></a></p>
<p>To finish setup Go to Packeton <code>integration</code> view page / Settings and provider <code>installation_id</code> in the form</p>
<p><a href="../img/githubapp3.png"><img src="../img/githubapp3.png" alt="Img" /></a></p>

</main>
Expand Down
58 changes: 35 additions & 23 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -2531,7 +2531,7 @@ <h2 id="table-of-content-1"><a class="header" href="#table-of-content-1">Table o
<li><a href="oauth2/bitbucket.html">Bitbucket Setup</a></li>
</ul>
<h2 id="base-configuration-reference"><a class="header" href="#base-configuration-reference">Base configuration reference</a></h2>
<p>To enable OAuth2 integrations you need to add following configuration </p>
<p>To enable OAuth2 integrations, you need to add the following configuration </p>
<pre><code class="language-yml">packeton:
integrations:
github: # Alias name
Expand Down Expand Up @@ -2664,8 +2664,8 @@ <h3 id="gitlab"><a class="header" href="#gitlab">GitLab</a></h3>
<h4 id="gitlab-groups-webhooks-notices"><a class="header" href="#gitlab-groups-webhooks-notices">GitLab Groups Webhooks notices</a></h4>
<p>A group webhooks needed for synchronization a new package.
They are triggered by events that occur across all projects in the group.
This feature enabled only for Premium / EE / Gold paid plan, but it can be replaced with GitLab Packagist Integration</p>
<p>You must manually setup this integration.</p>
This feature is enabled only for Premium / EE / Gold paid plan, but it can be replaced with GitLab Packagist Integration</p>
<p>You must manually set up this integration.</p>
<p><a href="img/gitlab.png"><img src="img/gitlab.png" alt="Gitlab" /></a></p>
<p>Where token you can find on the packeton integration view page. The token must have <code>whk</code> prefix
to find related integration access token.</p>
Expand Down Expand Up @@ -2717,7 +2717,7 @@ <h3 id="configure-pull-request-review"><a class="header" href="#configure-pull-r
<p>Go to you GitHub account Settings / Developer settings (<code>https://github.com/settings/developers</code>) and select &quot;New OAuth App&quot;</p>
<p>Use the packeton host as &quot;Callback URL / Redirect URL&quot;. For example <code>https://packeton.example.org</code></p>
<p><a href="oauth2/../img/github-oauth2.png"><img src="oauth2/../img/github-oauth2.png" alt="Groups" /></a></p>
<p>Use obtained <code>clinent_id</code>, <code>client_secret</code> to create configuration in yaml. For docker installation you may use <code>config.yaml</code> file in docker volume.</p>
<p>Use obtained <code>client_id</code>, <code>client_secret</code> to create configuration in yaml. For docker installation you may use <code>config.yaml</code> file in docker volume.</p>
<pre><code class="language-yaml">packeton:
integrations:
github: # any alias name
Expand All @@ -2727,25 +2727,34 @@ <h3 id="configure-pull-request-review"><a class="header" href="#configure-pull-r
client_id: 'xxx'
client_secret: 'xxx'
</code></pre>
<p>Now go to Packeton integration page and click Install Integration. You will see list of available integrations and its Redirect Urls</p>
<p>Click to Connect to set up oauth2 credentials</p>
<p>Now go to Packeton integration page and click Install Integration. You will see a list of available integrations and its Redirect Urls</p>
<p>Click to <code>Connect</code> to set up oauth2 credentials.</p>
<p><a href="oauth2/../img/github-connect.png"><img src="oauth2/../img/github-connect.png" alt="Groups" /></a></p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="github-app-integration"><a class="header" href="#github-app-integration">GitHub App Integration</a></h1>
<p>GitHub App Integration is alternative of GitHub OAuth2. To create GitHub go to
Settings / Developer settings / GitHub Apps and click New GitHub App.</p>
<p>Use the next &quot;Callback URL / Redirect URL&quot;.</p>
<p>Redirect Urls:</p>
<pre><code>https://example.com/oauth2/{alias}/install
https://example.com/oauth2/{alias}/check
<p>GitHub App Integration is alternative of GitHub OAuth2.
To create GitHub go to: Settings / Developer settings / GitHub Apps and click <code>New GitHub App</code>.</p>
<ul>
<li>Enter a GitHub App name: Private Packeton.</li>
<li>Enter a homepage url: https://packeton.example.com for example.</li>
<li>Click <code>Add Callback URL</code> and use the next &quot;Callback URL / Redirect URL&quot;.</li>
</ul>
<pre><code>https://packeton.example.com/oauth2/{alias}/install
https://packeton.example.com/oauth2/{alias}/check
</code></pre>
<p>The webhooks URL maybe any. We don't use it and setup webhooks per repository or choice organization.</p>
<p>Select Permissions: </p>
<ul>
<li>Webhooks read-write (Repository permissions)</li>
<li>Metadata (Repository permissions)</li>
<li>Pull requests read-write (Repository permissions)</li>
<li>Webhooks read-write (Organization permissions)</li>
<li>Members read (Organization permissions) - optional</li>
<li>Uncheck webhook active checkbox</li>
</ul>
<p>Select Repository permissions:</p>
<ul>
<li>Content: read-only </li>
<li>Webhooks: read-write</li>
<li>Metadata: read-only (already selected)</li>
<li>Pull requests read-write </li>
</ul>
<p>Select Organization permissions:</p>
<ul>
<li>Webhooks: read-write</li>
<li>Members: read (optional)</li>
</ul>
<p><a href="oauth2/../img/githubapp1.png"><img src="oauth2/../img/githubapp1.png" alt="Img" /></a></p>
<p>After creating App go to App view page and find <code>app_id</code> and generate a &quot;Private Key&quot;</p>
Expand All @@ -2761,12 +2770,15 @@ <h3 id="configure-pull-request-review"><a class="header" href="#configure-pull-r
private_key: '/data/packeton-key.pem'
app_id: 340120
</code></pre>
<p>When you must install GitHub App in you Github Account. Go to public App page, like <code>https://github.com/apps/{name}</code>
and click configure. Select you organization or own account.</p>
<p>When you must install GitHub App in your GitHub Account. </p>
<p>Go to public App page, like <code>https://github.com/apps/{name}</code> and click configure.
Select your organization or own account.</p>
<p><a href="oauth2/../img/githubapp2.png"><img src="oauth2/../img/githubapp2.png" alt="Img" /></a></p>
<p>After install you will see <code>installation_id</code> on URL address. For example <code>https://github.com/settings/installations/38069000</code></p>
<p>Now go to Packeton integration page and click Install Integration. When click to Connect under you githubapp configuration.</p>
<p>To finish setup Go to Packeton integration view page / Settings and provider <code>installation_id</code> in the form</p>
<p>Now go to Packeton <code>integration</code> page and click <code>Install Integration</code>.
When click to <code>Connect</code> under you <code>github</code> configuration.</p>
<p><a href="oauth2/../img/githubapp4.png"><img src="oauth2/../img/githubapp4.png" alt="Img" /></a></p>
<p>To finish setup Go to Packeton <code>integration</code> view page / Settings and provider <code>installation_id</code> in the form</p>
<p><a href="oauth2/../img/githubapp3.png"><img src="oauth2/../img/githubapp3.png" alt="Img" /></a></p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="gitlab-integration-setup"><a class="header" href="#gitlab-integration-setup">GitLab Integration Setup</a></h1>
<p>Go to you GitLab account preferences (<code>https://gitlab.example.com/-/profile/preferences</code>) and select &quot;Applications&quot;</p>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 10d9a84

Please sign in to comment.