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

Spring fullstack Addressbook with Oauth #35

Open
richiethom opened this issue Feb 17, 2025 · 0 comments
Open

Spring fullstack Addressbook with Oauth #35

richiethom opened this issue Feb 17, 2025 · 0 comments

Comments

@richiethom
Copy link

richiethom commented Feb 17, 2025

In this PR I have created an Oauth version of the Spring Fullstack Addressbook, set up to work with Google. I haven't tried other Oauth providers such as MS. It isn't perfect but it works.

I have based myself a lot on the guidance you gave in this issue, and have tried to formalise things a bit in their own sample.

Main changes:

  • removed passwords from the code and database where possible
  • Frontend
    • removed all the signup code, we now just redirect to the
    • added a proxy entry for the backend to let the call to the backend for oauth go through
  • Backend
    • Added depedencies to Spring's Oauth
    • Changed the build script to allow passing the secrets through
    • Changed the Security class to use Oauth

Please let me know what you think. I have added a few comments to explain what has happened.

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

No branches or pull requests

1 participant