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

Add OAuth authentication #750

Merged
merged 90 commits into from
Apr 9, 2024
Merged

Add OAuth authentication #750

merged 90 commits into from
Apr 9, 2024

Conversation

IgnisDa
Copy link
Owner

@IgnisDa IgnisDa commented Apr 7, 2024

@IgnisDa
Copy link
Owner Author

IgnisDa commented Apr 9, 2024

  • Make a backup of your database using the guide.
  • Setup OpenID on your instance using the guide.
  • Logout of your original account and then click on "Continue with OpenID Connect". Continue with user you want to select, after which a new account will be created. Let's say that I want IgnisDa below to be able to login using OIDC (of ignisda2001@gmail.com):
    image
  • Drop into your database (docker exec -u postgres -it ryot-db psql) and copy the oidc_issuer_id of the new user and then delete it using DELETE FROM "user" WHERE id = 6;
  • Update details of the old user using UPDATE "user" SET oidc_issuer_id = '104798859970005336426', password = NULL WHERE id = 1;. After this, it should look like this:
    image

You should now be able login using OIDC. The same procedure needs to be followed for all users that want their provider changed to OIDC.

@IgnisDa IgnisDa merged commit 23b1b27 into main Apr 9, 2024
@IgnisDa IgnisDa deleted the issue-522 branch April 9, 2024 23:49
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.

RelativeUrlWithoutBase error due to double quotes in db url [Feature Request] Oauth / OpenID
1 participant