-
Notifications
You must be signed in to change notification settings - Fork 69
single sign on Authentik and Keycloak instructions #320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+45.9 KB
...tatic/img/how-to-guides/single-sign-on/authentik-idp/1-create-with-provider.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
BIN
+53.2 KB
...ocs-static/img/how-to-guides/single-sign-on/authentik-idp/2-new-application.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
BIN
+81.3 KB
...tatic/img/how-to-guides/single-sign-on/authentik-idp/3-new-application-type.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
BIN
+64.8 KB
.../img/how-to-guides/single-sign-on/authentik-idp/4-new-application-client-id.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
BIN
+67.7 KB
...tatic/img/how-to-guides/single-sign-on/authentik-idp/5-new-application-sign.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
BIN
+81.2 KB
...tic/img/how-to-guides/single-sign-on/authentik-idp/6-new-application-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
BIN
+46.8 KB
...tic/img/how-to-guides/single-sign-on/authentik-idp/7-new-application-submit.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
BIN
+36.9 KB
...s-static/img/how-to-guides/single-sign-on/authentik-idp/8-list-applications.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
BIN
+129 KB
...docs-static/img/how-to-guides/single-sign-on/authentik-idp/9-list-providers.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
BIN
+26.4 KB
public/docs-static/img/how-to-guides/single-sign-on/keycloak-idp/1-new-client.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
BIN
+48.6 KB
...docs-static/img/how-to-guides/single-sign-on/keycloak-idp/2-new-client-type.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
BIN
+23.8 KB
...tatic/img/how-to-guides/single-sign-on/keycloak-idp/3-new-client-capability.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
BIN
+63.9 KB
...-static/img/how-to-guides/single-sign-on/keycloak-idp/4-new-client-callback.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
BIN
+24.7 KB
...atic/img/how-to-guides/single-sign-on/keycloak-idp/5-new-client-credentials.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
# Single Sign On | ||
|
||
Please follow the instructions below for your provider ([Authentik](#authentik-id-p) or [Keycloak](#keycloak-id-p)) and then share the information requested with the NetBird support team at [email protected] | ||
|
||
<Note> | ||
We recommend using a secure channel to share the Client’s secret. You can send a separate email and use a secret sharing service like: <br/> | ||
https://onetimesecret.com/en/ <br/> | ||
https://password.link/en | ||
</Note> | ||
|
||
## Authentik IdP | ||
|
||
1. You need to create a new Application and Provider. | ||
- Browse to the Applications Administration menu, click on Application, and then click on Create with Provider: | ||
|
||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/authentik-idp/1-create-with-provider.png" alt="create-with-provider" className="imagewrapper-big"/> | ||
</p> | ||
|
||
- Name the Application and select a suitable explicit user flow. In the example below, we used NetBird: | ||
|
||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/authentik-idp/2-new-application.png" alt="new-application" className="imagewrapper-big"/> | ||
</p> | ||
|
||
- Click Next and select the OAuth2/OpenID Provider Type: | ||
|
||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/authentik-idp/3-new-application-type.png" alt="new-application" className="imagewrapper-big"/> | ||
</p> | ||
|
||
- Click Next and select an explicit user authorization flow, then take note of the Client ID and Client Secret: | ||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/authentik-idp/4-new-application-client-id.png" alt="new-application" className="imagewrapper-big"/> | ||
</p> | ||
|
||
- Add the following redirect URL and select a signing key: <br/> | ||
URL: `https://login.netbird.io/login/callback` | ||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/authentik-idp/5-new-application-sign.png" alt="new-application" className="imagewrapper-big"/> | ||
</p> | ||
|
||
- Click on Advanced protocol settings and ensure that the email, opened, and profile scopes are selected and that Based on the User’s Hash ID is selected for Subject mode: | ||
|
||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/authentik-idp/6-new-application-scopes.png" alt="new-application" className="imagewrapper-big"/> | ||
</p> | ||
|
||
- Click Next on the following two screens and Submit to create the provider and application: | ||
|
||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/authentik-idp/7-new-application-submit.png" alt="new-application" className="imagewrapper-big"/> | ||
</p> | ||
|
||
- You should see an application listed as follow: | ||
|
||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/authentik-idp/8-list-applications.png" alt="list-applications" className="imagewrapper-big"/> | ||
</p> | ||
|
||
2. We need to copy the OpenID Configuration URL for the new provider. You can do that by navigating to Providers in the left menu and then selecting the newly created provider. There you should see a windows similar to the following: | ||
|
||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/authentik-idp/9-list-providers.png" alt="list-providers" className="imagewrapper-big"/> | ||
</p> | ||
|
||
- Copy the OpenID Configuration URL. | ||
|
||
|
||
Then, share the following information with the NetBird support team at [email protected]: | ||
|
||
- Client ID | ||
- Client Secret | ||
- OpenID Configuration URL | ||
- Email domains for your users | ||
|
||
|
||
## Keycloak IdP | ||
|
||
1. You need to create a new client | ||
|
||
- Browse to the clients Administration menu and then click in Create client: | ||
|
||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/keycloak-idp/1-new-client.png" alt="new-client" className="imagewrapper-big"/> | ||
</p> | ||
|
||
2. Create a client with the type OpenID Connect and add any client ID and name for the client: | ||
|
||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/keycloak-idp/2-new-client-type.png" alt="new-client" className="imagewrapper-big"/> | ||
</p> | ||
|
||
3. Click Next and enable the following options for Capability config: | ||
|
||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/keycloak-idp/3-new-client-capability.png" alt="new-client" className="imagewrapper-big"/> | ||
</p> | ||
|
||
4. Click Next and fill the following fields: | ||
|
||
Valid redirect URIs: `https://login.netbird.io/login/callback` <br/> | ||
Web origins: `+` | ||
|
||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/keycloak-idp/4-new-client-callback.png" alt="new-client" className="imagewrapper-big"/> | ||
</p> | ||
|
||
5. Click Save. | ||
|
||
6. Next we need to retrieve the secret for the client, you can get that in the Credentials tab for the client: | ||
|
||
<p> | ||
<img src="/docs-static/img/how-to-guides/single-sign-on/keycloak-idp/5-new-client-credentials.png" alt="new-client" className="imagewrapper-big"/> | ||
</p> | ||
|
||
7. Then share with the NetBird support using a secure way the following information: | ||
|
||
- Client ID | ||
- Keycloak URL | ||
- Realm | ||
- Client Secret | ||
- Email domains for your users |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.