-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add guides for common OIDC providers
wip Signed-off-by: Max Jonas Werner <[email protected]>
- Loading branch information
Max Jonas Werner
committed
Nov 14, 2023
1 parent
8b6addb
commit 7d1ccbe
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,74 @@ | ||
--- | ||
title: Common OIDC provider configurations | ||
hide_title: true | ||
--- | ||
|
||
# Common OIDC provider configurations | ||
|
||
|
||
### Obtaining client ID and secret | ||
|
||
Follow the [official guide](https://developers.google.com/identity/openid-connect/openid-connect) from Google to obtain client ID and secret. | ||
|
||
### Configuring Weave GitOps | ||
|
||
```yaml | ||
apiVersion: v1 | ||
kind: Secret | ||
type: Opaque | ||
stringData: | ||
clientID: YOUR_CLIENT_ID | ||
clientSecret: YOUR_CLIENT_SECRET | ||
issuerURL: https://accounts.google.com | ||
redirectURL: http://YOUR_WEAVE_GITOPS_DOMAIN/oauth2/callback | ||
customScopes: openid,email | ||
metadata: | ||
name: oidc-auth | ||
[...] | ||
``` | ||
|
||
## Azure AD | ||
|
||
### Obtaining client ID and secret | ||
|
||
Follow the [official guide](https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app) from Microsoft to obtain client ID and secret. | ||
|
||
### Configuring Weave GitOps | ||
|
||
```yaml | ||
apiVersion: v1 | ||
kind: Secret | ||
type: Opaque | ||
stringData: | ||
clientID: YOUR_CLIENT_ID | ||
clientSecret: YOUR_CLIENT_SECRET | ||
issuerURL: https://login.microsoftonline.com/TENANT_ID/v2.0 | ||
redirectURL: http://YOUR_WEAVE_GITOPS_DOMAIN/oauth2/callback | ||
customScopes: openid | ||
claimUsername: sub | ||
metadata: | ||
name: oidc-auth | ||
[...] | ||
``` | ||
|
||
## Keycloak | ||
|
||
### Obtaining client ID and secret | ||
|
||
tbd | ||
|
||
### Configuring Weave GitOps | ||
|
||
```yaml | ||
apiVersion: v1 | ||
kind: Secret | ||
stringData: | ||
clientID: YOUR_CLIENT_ID | ||
clientSecret: YOUR_CLIENT_SECRET | ||
issuerURL: https://KEYCLOAK_DOMAIN/realms/KEYCLOAK_REALM | ||
redirectURL: https://YOUR_WEAVE_GITOPS_DOMAIN/oauth2/callback | ||
metadata: | ||
name: oidc-auth | ||
[...] | ||
``` |
This file contains 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