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

Increase token lifespans in the default realm created by DevServices for Keycloak #28175

Conversation

sberyozkin
Copy link
Member

Dev Services for Keycloak will create a default realm if no custom realm has been provided, and after a login to this realm, Keycloak will issue short-lived access and id tokens, which is inconvenient when using them from Dev UI - for example, I tried Dev UI, then started looking at the tests (another time I was examining the tokens and was using them slowly enough in UI), and then retrying the token from Dev Ui fails with 401.

So I've increased it 600 to secs (10 mins), users can then change it further if needed via a Keycloak Admin link, 10 mins seems to be just enough, but we can tune further

Copy link
Member

@phillip-kruger phillip-kruger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gsmet gsmet merged commit eda2332 into quarkusio:main Sep 25, 2022
@quarkus-bot quarkus-bot bot added this to the 2.14 - main milestone Sep 25, 2022
@sberyozkin sberyozkin deleted the devservices_for_keycloak_increase_token_lifespan branch September 25, 2022 10:32
@gsmet gsmet modified the milestones: 2.14 - main, 2.13.1.Final Sep 30, 2022
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

Successfully merging this pull request may close these issues.

3 participants