Getting Started
Demonstrates how to setup JWT Bearer Authentication based on Keycloak as OpenID Connect Identity Provider.
Last updated
Demonstrates how to setup JWT Bearer Authentication based on Keycloak as OpenID Connect Identity Provider.
Last updated
Keycloak may be used as a fully-compatible OpenID Connect (OIDC) provider.
All you need to do is to register Keycloak Client.
Create AuthZ realm
Navigate to "Clients" section
Create client named "workspace-authz". Save
Navigate to "Installation" tab and download installation file
Save file to the root of your project and name it "keycloak.json"
Here is how an installation file might look like:
You can use host.ConfigureKeycloakConfigurationSource()
to hook up Keycloak Authentication from the installation file. This approach relies on reasonable defaults and some Keycloak conventions. See AddKeycloakAuthentication definition for more details.
Also, you may want to abandon the idea of using the installation file and use KeycloakInstallationOptions
instead.