-
Notifications
You must be signed in to change notification settings - Fork 54
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
feat: add parameter to customize token lifespan #92
Conversation
Thanks @endroca . 2 things:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of changes. Otherwise looking good.
return OptionalInt.empty(); | ||
} | ||
|
||
return OptionalInt.of(Integer.parseInt(lifespan)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should catch a NumberFormatException
here, as the string doesn't get validated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, I didn't validate that... there are two approaches here: Forcing an unknown error for Keycloak and preventing login, or going with the default settings and logging an error.
I'm more inclined to use the default configuration. What do you think?
No description provided.