oneconcern / keycloak-gatekeeper

A OpenID / Keycloak Proxy service
Apache License 2.0
63 stars 7 forks source link

feat: added required scopes option #52

Closed fredbi closed 3 years ago

fredbi commented 3 years ago

The gatekeeper may now check for some scopes to be in the access token.

Our use case is to be able to specialize gateways and allow only some users to connect via a gateway.

Adding this new check on the token raised an issue: whenever a user is rejected by the reverse proxy gateway, but yet has a valid OIDC session (e.g. valid but missing some scopes), the redirection workflow has to revoke the session so the end user does not remain locked on this error page and can restart a full workflow with a new identity.

Changes: