plugin-oauth2 icon indicating copy to clipboard operation
plugin-oauth2 copied to clipboard

OAuth2 configuration with Keycloak

Open olivierBlanc opened this issue 3 years ago • 4 comments

I would like to integrate Keycloak authentification in Kanboard. But I cannot figure out the steps to configure both Keycloak and Kanboard OAuth2 plugin. Does anyone has documentation on that ?

Configuration

  • Plugin version: 2f20dfe
  • Kanboard version: v1.2.19
  • Database type and version: postgres 11.11
  • PHP version: 7.4.15
  • OS: Linux / Docker
  • Browser: Brave

olivierBlanc avatar Apr 27 '21 08:04 olivierBlanc

Keycloak->Client->Settings:

Client ID: <any value, copy for kanboard>
Enabled: checked
Client Protocol: openid-connect
Access Type: confidential
Valid Redirect URIs: https://<kanboard>/oauth/callback
Base URL: https://<kanboard>/
Admin URL: https://<kanboard>/
Web Origins: https://<kanboard>/

Keycloak->Client->Credentials:

Client Authenticator: Client Id and Secret
Secret: <generated, copy for kanboard>

Keycloak->Client->Client Scopes:

Default Client Scopes: email profile

Keycloak->Client->Scope Mappings:

Full Scope Allowed: unchecked

Kanboard:

Callback URL: https://<kanboard>/oauth/callback
Client ID: <as defined in keycloak>
Client Secret: <as defined in keycloak>
Authorize URL: https://<keycloak>/realms/<realm>/protocol/openid-connect/auth
Token URL: https://<keycloak>/realms/<realm>/protocol/openid-connect/token
User API URL: https://<keycloak>/realms/<realm>protocol/openid-connect/userinfo
Scopes: openid profile email
Username Key: preferred_username
Name Key: name
Email Key: email
User ID Key: sub

jrb0001 avatar May 16 '21 09:05 jrb0001

It works for me. Thanks!

luismanson avatar Jul 06 '21 22:07 luismanson

Sorry to hijack the issue, but I was able to configure oatuh with keycloak, but I cannot use the field group filter with a wildcard, like group-*. Theres a way to use wildcard?

If necessary I open another issue.

Thanks in advance

Cyphers171 avatar Oct 05 '22 19:10 Cyphers171

image After providing the right username and password from keycloak login page still error is shown on the screen

image Under user sessions successful login of the user is shown image

babvin avatar Aug 29 '24 13:08 babvin