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

Update OidcClientImpl to throw ISE if the client is closed #17932

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

sberyozkin
Copy link
Member

Fixes #16472

OidcClient can be injected or obtained via OidcClients and one way or the other it will be eventually closed. So this PR updates OidcClient to throw ISE if its getTokens or refreshTokens is called after it has been closed

Copy link
Contributor

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

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

LGTM, but please squash the commits before merging 😉

@sberyozkin
Copy link
Member Author

@gastaldi Hi George, sure, I actually forgot about it :-), sorry about it...

@sberyozkin sberyozkin merged commit efaaa15 into quarkusio:main Jun 16, 2021
@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jun 16, 2021
@sberyozkin sberyozkin deleted the oidc_client_close branch June 16, 2021 09:23
@gsmet gsmet modified the milestones: 2.1 - main, 2.0.0.Final Jun 21, 2021
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.

Closed OidcClients should throw ISE in its methods and OidcClients should ignore close IO Exceptions
3 participants