Closed posledov closed 4 years ago
Can also confirm this issue, the plugin needs to ask for valid scopes. Keycloak has switched to using explicit scopes as of version 10.0.0. Null/incorrect scopes will always fail now.
The scopes required btw are openid
, profile
, email
.
Pinging @fguillot.
Not sure if you've seen this, but kanboard has been inaccessible for me for a little while. I'm not asking for a fix right now, but knowing you've seen and are looking at this would be good.
You should be able to add the scopes in Settings > Integration.
What setting in the database would that be, and what format do I use? I can't access the site to fix this because I can't log in. I can edit the database though.
I just realized the plugin has been updated in a while. Upgrade this plugin to version 1.0.2. Someone already patched the code to support scopes: https://github.com/kanboard/plugin-oauth2/commit/b6713cf0dc8f24c4bca150db8b0c65d738bc6c56
Alright, grabbed that. I thanks to the commit, I was able to see what it was looking for and manually added the field and data needed.
I can now log in again, thank you very much for the support!
Actual behaviour
Auth request:
https://id.example.net/auth/realms/example.net/protocol/openid-connect/auth?response_type=code&client_id=some_client_id&redirect_uri=https%3A%2F%2Fkanboard.example.net%2Foauth%2Fcallback&scope=&state=190b....ae36
The param
scope
is emptyAs a result there is such lines in Keycloak's logs:
Expected behaviour
Auth request:
https://id.example.net/auth/realms/example.net/protocol/openid-connect/auth?response_type=code&client_id=some_client_id&redirect_uri=https%3A%2F%2Fkanboard.example.net%2Foauth%2Fcallback&**scope=openid**&state=190b....ae36
The param
scope
should be equal toopenid
Steps to reproduce
Just try to login with/link OAuth2 account using Keycloak as OAuth2 provider
Configuration