Skip to content

Conversation

@acoburn
Copy link
Collaborator

@acoburn acoburn commented May 25, 2023

The Session.authenticate(Request, Set<String>) method was deprecated as part of #459.

In that change, the ReactiveAuthorization class calls session.authenticate(Authenticator, Request, Set<String>) so that the session is able to manage a token cache internally.

As such, the session may call the Authenticator object to retrieve the relevant credential. If that authenticator also calls session.authenticate(...) -- as it does here -- there is a possibility that this call will enter a recursive loop.

This PR removes the use of the deprecated Session.authenticate(Request, Set<String>) method as it is no longer needed for reactive authorization. Instead, the authenticator only extracts an OpenID Credential from the existing session.

@acoburn acoburn requested a review from a team as a code owner May 25, 2023 21:04
@acoburn acoburn enabled auto-merge (squash) May 26, 2023 10:20
@acoburn acoburn merged commit f17fa56 into main May 26, 2023
@acoburn acoburn deleted the JCL-366-sonar-deprecated-authenticate branch May 26, 2023 10:34
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