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

Make the server the oauth2 client #112

Open
cameron-martin opened this issue Jan 17, 2020 · 0 comments
Open

Make the server the oauth2 client #112

cameron-martin opened this issue Jan 17, 2020 · 0 comments

Comments

@cameron-martin
Copy link
Owner

cameron-martin commented Jan 17, 2020

Currently the browser is the oauth2 client (as in section 6.3 of the IETF document). However, I want to switch to the server (next.js) being the oauth2 client, with a session maintained with the browser (as in section 6.2 of the IETF document). The main reason for this is so that the server can authenticate during SSR.

We can use API routes to proxy requests to the resource server. There's an example of doing cookie-based authentication.

Supercedes #19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant