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

PB-1406: Make cognito authenticated users superuser #508

Closed
wants to merge 1 commit into from

Conversation

msom
Copy link
Contributor

@msom msom commented Jan 29, 2025

Currently RemoteUserBackend creates an authenticated user if it not already exists (create_unknown_user is set by default). I suggest we generally set the superuser flag for the cognito authenticated users until we implement proper authorization. The other possibility would be to set create_unknown_user and create the users by hand (auth-attempts for non-existing users will then return 401 instead of 403).

I also updated the tests for v1 to use the new authentication method, as this is what we want to use there so it doesn't make much sense to use another authentication method in the test.

What do you think?

@msom
Copy link
Contributor Author

msom commented Jan 29, 2025

Might be a bit early, let's discuss this next week...

@adk-swisstopo adk-swisstopo marked this pull request as draft January 29, 2025 09:07
@msom
Copy link
Contributor Author

msom commented Feb 4, 2025

Will create a new PR when decided and needed

@msom msom closed this Feb 4, 2025
@msom msom deleted the feat-PB-1406-make-remote-user-superuser branch February 4, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant