FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

JCL-366: Remove use of deprecated authenticate by acoburn · Pull Request #489 · inrupt/solid-client-java · GitHub

Repository navigation

JCL-366: Remove use of deprecated authenticate - #489

Merged
acoburn merged 2 commits into
mainfrom
JCL-366-sonar-deprecated-authenticate
May 26, 2023
Merged

acoburn merged 2 commits into
mainfrom
JCL-366-sonar-deprecated-authenticate

Conversation

acoburn commented May 25, 2023

Copy link
Copy Markdown
Contributor

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 requested a review from a team May 25, 2023 21:04
acoburn enabled auto-merge (squash) May 26, 2023 10:20
acoburn merged commit f17fa56 into main May 26, 2023
acoburn deleted the JCL-366-sonar-deprecated-authenticate branch May 26, 2023 10:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL