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

feat(oauth2): support server-side callback #381

Merged
merged 13 commits into from Jun 23, 2019
Merged

feat(oauth2): support server-side callback #381

merged 13 commits into from Jun 23, 2019

Conversation

Atinux
Copy link
Member

@Atinux Atinux commented Jun 18, 2019

Bonus: I added $auth in context for easier usage in asyncData

This PR is to enhance the DX on the callback redirect page to support SSR redirect.

It also avoid calling the provider (ex: GitHub) if the query params are not on the callback route.

Before:

nuxt-auth-oauth-csr

After:

nuxt-auth-oauth-ssr

@Atinux Atinux closed this Jun 18, 2019
@Atinux Atinux deleted the ssr-oauth2 branch Jun 18, 2019
@Atinux Atinux restored the ssr-oauth2 branch Jun 18, 2019
@Atinux Atinux reopened this Jun 18, 2019
@Atinux Atinux added the WIP label Jun 18, 2019
@Atinux Atinux changed the title feat(oauth2): Support server-side feat(oauth2): Support server-side for callback page Jun 18, 2019
@Atinux Atinux changed the title feat(oauth2): Support server-side for callback page feat(oauth2): [DX] Support server-side for callback page Jun 18, 2019
@codecov
Copy link

codecov bot commented Jun 18, 2019

Codecov Report

Merging #381 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@         Coverage Diff         @@
##            dev   #381   +/-   ##
===================================
  Coverage   100%   100%           
===================================
  Files         1      1           
  Lines         2      2           
===================================
  Hits          2      2

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79e7318...c9b6cd1. Read the comment docs.

lib/schemes/oauth2.js Show resolved Hide resolved
lib/schemes/oauth2.js Outdated Show resolved Hide resolved
@Atinux Atinux requested a review from pi0 Jun 21, 2019
@Atinux Atinux removed the WIP label Jun 21, 2019
@pi0 pi0 changed the title feat(oauth2): [DX] Support server-side for callback page feat(oauth2): support server-side callback Jun 23, 2019
pi0
pi0 approved these changes Jun 23, 2019
@pi0 pi0 merged commit af550d4 into dev Jun 23, 2019
@pi0 pi0 deleted the ssr-oauth2 branch Jun 23, 2019
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.

None yet

2 participants