Fix Keycloak documentation (#8149)

This commit is contained in:
Nahuel 2022-10-14 17:37:44 +02:00 committed by GitHub
parent b69581299f
commit bd78ae28ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 13 deletions

View File

@ -19,8 +19,8 @@ authenticationConfiguration:
provider: "custom-oidc"
providerName: "KeyCloak"
publicKeyUrls:
- "http://localhost:8080/realms/data-sec/protocol/openid-connect/certs"
authority: "http://localhost:8080/realms/data-sec"
- "http://localhost:8081/realms/data-sec/protocol/openid-connect/certs"
authority: "http://localhost:8081/realms/data-sec"
clientId: "open-metadata"
callbackUrl: "http://localhost:8585/callback"
```

View File

@ -26,8 +26,8 @@ AUTHORIZER_PRINCIPAL_DOMAIN=open-metadata.org # Update with your domain
AUTHENTICATION_PROVIDER=custom-oidc
CUSTOM_OIDC_AUTHENTICATION_PROVIDER_NAME=KeyCloak
AUTHENTICATION_PUBLIC_KEYS=[{http://localhost:8080/realms/data-sec/protocol/openid-connect/certs}]
AUTHENTICATION_AUTHORITY={http://localhost:8080/realms/data-sec}
AUTHENTICATION_PUBLIC_KEYS=[{http://localhost:8081/realms/data-sec/protocol/openid-connect/certs}]
AUTHENTICATION_AUTHORITY={http://localhost:8081/realms/data-sec}
AUTHENTICATION_CLIENT_ID=open-metadata # Update with your Client ID
AUTHENTICATION_CALLBACK_URL=http://localhost:8585/callback
@ -35,7 +35,7 @@ AUTHENTICATION_CALLBACK_URL=http://localhost:8585/callback
AIRFLOW_AUTH_PROVIDER=custom-oidc
OM_AUTH_AIRFLOW_CUSTOM_OIDC_CLIENT_ID=open-metadata # Update with your Client ID
OM_AUTH_AIRFLOW_CUSTOM_OIDC_SECRET_KEY={Secret Key} # Update with your Secret Key
OM_AUTH_AIRFLOW_CUSTOM_OIDC_TOKEN_ENDPOINT_URL="http://localhost:8080/realms/data-sec/protocol/openid-connect/token"
OM_AUTH_AIRFLOW_CUSTOM_OIDC_TOKEN_ENDPOINT_URL="http://localhost:8081/realms/data-sec/protocol/openid-connect/token"
```
### 1.1 After 0.12.1
@ -50,8 +50,8 @@ AUTHORIZER_PRINCIPAL_DOMAIN=open-metadata.org # Update with your domain
AUTHENTICATION_PROVIDER=custom-oidc
CUSTOM_OIDC_AUTHENTICATION_PROVIDER_NAME=KeyCloak
AUTHENTICATION_PUBLIC_KEYS=[{http://localhost:8080/realms/data-sec/protocol/openid-connect/certs}]
AUTHENTICATION_AUTHORITY={http://localhost:8080/realms/data-sec}
AUTHENTICATION_PUBLIC_KEYS=[{http://localhost:8081/realms/data-sec/protocol/openid-connect/certs}]
AUTHENTICATION_AUTHORITY={http://localhost:8081/realms/data-sec}
AUTHENTICATION_CLIENT_ID=open-metadata # Update with your Client ID
AUTHENTICATION_CALLBACK_URL=http://localhost:8585/callback
```

View File

@ -103,5 +103,9 @@ workflowConfig:
securityConfig:
clientId: '{your_client_id}'
secretKey: '{your_client_secret}'
domain: '{your_domain}'
tokenEndpoint: '{your_token_endpoint}' # e.g. http://localhost:8081/realms/data-sec/protocol/openid-connect/token
```
<Note>
A dockerized demo for showing how this SSO works with OpenMetadata can be found [here](https://github.com/open-metadata/openmetadata-demo/tree/main/keycloak-sso).
</Note>

View File

@ -33,8 +33,8 @@ global:
authentication:
provider: "custom-oidc"
publicKeys:
- "http://localhost:8080/realms/data-sec/protocol/openid-connect/certs"
authority: "http://localhost:8080/realms/data-sec"
- "http://localhost:8081/realms/data-sec/protocol/openid-connect/certs"
authority: "http://localhost:8081/realms/data-sec"
clientId: "{Client ID}"
callbackUrl: "http://localhost:8585/callback"
airflow:
@ -45,7 +45,7 @@ global:
secretKey:
secretRef: custom-oidc-key-secret
secretKey: custom-oidc-key-secret
tokenEndpoint: "http://localhost:8080/realms/data-sec/protocol/openid-connect/token"
tokenEndpoint: "http://localhost:8081/realms/data-sec/protocol/openid-connect/token"
```
### After 0.12.1
@ -64,8 +64,8 @@ global:
authentication:
provider: "custom-oidc"
publicKeys:
- "http://localhost:8080/realms/data-sec/protocol/openid-connect/certs"
authority: "http://localhost:8080/realms/data-sec"
- "http://localhost:8081/realms/data-sec/protocol/openid-connect/certs"
authority: "http://localhost:8081/realms/data-sec"
clientId: "{Client ID}"
callbackUrl: "http://localhost:8585/callback"
```