You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add support for authentication with provided Keycloak Access Token (#1320)
- Allow users to use a provided access token for authentication
- Add test for authenticating with provided access token
- Add target to generate a current acces-token to the makefile
- Update github ci tests to support
- Add docs
Fixes#1319
Signed-off-by: Thomas Darimont <[email protected]>
Co-authored-by: Christopher Svensson <[email protected]>
You can also run the same tests on Keycloak's https port with the Keycloak Terraform provider authenticating to the server with a mTLS client certificate.
150
150
For this start the env with `make local-mtls`. After that run the following command:
@@ -104,6 +137,7 @@ The following arguments are supported:
104
137
-`client_secret` - (Optional) The secret for the client used by the provider for authentication via the client credentials grant. This can be found or changed using the "Credentials" tab in the client settings. Defaults to the environment variable `KEYCLOAK_CLIENT_SECRET`. This attribute is required when using the client credentials grant, and cannot be set when using the password grant.
105
138
-`username` - (Optional) The username of the user used by the provider for authentication via the password grant. Defaults to the environment variable `KEYCLOAK_USER`. This attribute is required when using the password grant, and cannot be set when using the client credentials grant.
106
139
-`password` - (Optional) The password of the user used by the provider for authentication via the password grant. Defaults to the environment variable `KEYCLOAK_PASSWORD`. This attribute is required when using the password grant, and cannot be set when using the client credentials grant.
140
+
-`access_token` - (Optional) The access token that should be used by the provider for authentication via token. Defaults to the environment variable `KEYCLOAK_ACCESS_TOKEN`.
107
141
-`jwt_signing_key` - (Optional) The PEM-formatted private key used by provider to generate a signed JWT for authentication.
108
142
-`jwt_signing_alg` - (Optional) The signing algorithm used by provider to generate a signed JWT for authentication. Defaults to `RS256`.
109
143
-`realm` - (Optional) The realm used by the provider for authentication. Defaults to the environment variable `KEYCLOAK_REALM`, or `master` if the environment variable is not specified.
0 commit comments