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

Support self editor profile matching by using External Auth ID #444

Merged
merged 4 commits into from Apr 17, 2024

Conversation

litvinovg
Copy link
Contributor

VIVO GitHub issue

  • Other Relevant Links (Mailing list discussion, related pull requests, etc.)
    VIVO PR

What does this pull request do?

Fixes broken profile linking made by using External Auth ID.

What's new?

  • Refactored PolicyHelper and AuthorizationRequest to use UserAccount instead of of IdentifierBundle.
  • Modified SparqlSelectQueryResultsChecker to support queries that contain externalAuthId and matchingPropertyUri
  • Modified existing policies to find related profiles by using External Auth ID

How should this be tested?

See VIVO PR

Interested parties

@VIVO-project/vivo-committers

Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

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

@litvinovg well done.

I have reviewed the code and posted three comments.

In order to test this PR I had to apply patches from those PRs - #443 , #445
After application of those PRs it works as described.

chenejac
chenejac previously approved these changes Mar 14, 2024
Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

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

@litvinovg looks good and works well, thanks

@litvinovg
Copy link
Contributor Author

Resolved merge conflict

@litvinovg litvinovg requested a review from chenejac March 26, 2024 16:17
@litvinovg litvinovg linked an issue Apr 3, 2024 that may be closed by this pull request
@brianjlowe brianjlowe merged commit f484c98 into vivo-project:main Apr 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants