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

create new user when using SSO #48

Closed
not7cd opened this issue Jun 6, 2021 · 1 comment · Fixed by #75
Closed

create new user when using SSO #48

not7cd opened this issue Jun 6, 2021 · 1 comment · Fixed by #75
Assignees
Labels
bug Something isn't working

Comments

@not7cd
Copy link
Contributor

not7cd commented Jun 6, 2021

now it just fails when no user with given username is present in database

@not7cd not7cd added the bug Something isn't working label Jun 6, 2021
@not7cd
Copy link
Contributor Author

not7cd commented Jul 10, 2024

@EduKav1813, can you take a look? Now it should be easier to debug with mock-oauth2-server. See README for using it. You should be greeted by a login page with user1 sign-on when using login with SSO.

This is the place to fix this. We should create a user on first login.

user = User.get(User.username == user_info["preferred_username"])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants