Skip to content

Commit

Permalink
Added some additional documentation on setting up GitHub authN/Z, for…
Browse files Browse the repository at this point in the history
… publishing (#59)
  • Loading branch information
jasonmadigan authored Nov 13, 2023
1 parent dda6316 commit 8595ccc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions _pages/studio/docs/setting-up-keycloak-for-use-with-apicurio.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,22 @@ You should now be able to not only link your GitHub account in Apicurio Studio b
>
> Note: to disable GitHub login, simply turn **Account Linking Only** on!
### 7.1.1 GitHub Publishing

To enable publishing of changes to repositories in GitHub, you will need to do the following:

* In an Apicurio Keycloak Realm, navigate to `Roles`, then `Default Roles`, and select the `broker` Client Role. Add the `read-token` role to the `Client Default Roles` list.

![Keycloak](/images/guides/kc-github-roles.png)

* For existing users, add this role manually. Navigate to `Users` within the realm, select a user, go to `Role Mappings`, choose `broker` from the Client Roles list, and assign the `read-token` role.
* In `Clients`, select the `apicurio-studio` client. Navigate to `Client Scopes`, and add the `roles` client scope to the Assigned Default Client Scopes list. Keycloak, by default, includes client roles in tokens via the `roles` client scope.

![Keycloak](/images/guides/kc-github-client-scopes.png)


With these settings, you should now be able to publish APIs to GitHub repositories.

### 7.2 Enable GitLab Account Linking
In order to support account linking with GitLab, you must make some configuration changes in both Keycloak and GitLab. This section explains the steps.

Expand Down
Binary file added images/guides/kc-github-client-scopes.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 images/guides/kc-github-roles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8595ccc

Please sign in to comment.