Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default DEFAULT_OAUTH2_REQUEST_PERMISSIONS do not work with keycloak #136

Open
lukasjelonek opened this issue Oct 1, 2020 · 0 comments
Open

Comments

@lukasjelonek
Copy link

Problem

I wanted to setup wekan (snap on ubuntu) with keycloak 11.0.2 and followed the documentation in the wiki. Unfortunately the described way always opened a login-popup and closed it immediately. The reason was an unsupported request of scopes.

After some investigation I realized that the wekan snap uses an incompatible scope request. The default value quotes the scopes with single ticks. After configuring it without the additional single quotes, it worked.

I can't tell if changing the defaults will be a problem for other oidc-Providers, but at least keycloak 11.0.2 rejects these requests.

Suggested (simple) Solutions

Either change defaults

DEFAULT_OAUTH2_REQUEST_PERMISSIONS="'openid profile email'"

change it to

DEFAULT_OAUTH2_REQUEST_PERMISSIONS="openid profile email"

Or add to keycloak wiki entry

sudo snap set wekan oauth2-scopes='openid profile email'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant