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

preauth - making sure the authenticated flag on the token is set to true #87

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

pmauduit
Copy link
Member

@pmauduit pmauduit commented Dec 5, 2023

Calling the constructor for PreAuthenticatedAuthenticationToken with 3 args, which sets the authenticated flag to true. This fixes issues with targets requiring that the user logged in but with no specific roles.

Without the modification,we can end up in the following situation:

image

tests: adding an IT, make test OK

calling the constructor with 3 args, which sets the flag to true.
This fixes issues with targets requiring that the user logged in but
with no specific roles.

tests: adding an IT
@pmauduit pmauduit merged commit 009a9fa into main Dec 6, 2023
3 checks passed
@pmauduit pmauduit deleted the fix-preauth-user-authenticated-set-to-false branch December 6, 2023 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
INRAE
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

2 participants