Auth-module: Alternative to page redirect login for Oauth

Created on 29 Jan 2019  路  7Comments  路  Source: nuxt-community/auth-module

What problem does this feature solve?

Provide popup login for facebook and google schemes.

What does the proposed changes look like?

On oauth2.js change the current behavior of window.location to redirect the user to oauth login page. Instead provide options so that it can open a popup to verify and prevent any redirect during login.

This feature request is available on Nuxt community (#c271)
enhancement

Most helpful comment

Looking for the same behavior.

All 7 comments

I imagine you'd have your success URLs set to try to close the new tab? I think you could easily emulate this by having your /login URL auto-forward into the standard oauth process then ensure all links to /login are target="_blank" or triggered by Javascript if you want to try to close the popup window instance after.

Is this issue solved? Any ideas how to do it? @DevBrent do you know how to add a target=_blank to it?

Looking for the same behavior.

Will be nice

need it

Do it.

I'd love to see a way to do something like this for all scheme.
This should be possible using window.open and the postMessage API.
login-popup

Was this page helpful?
0 / 5 - 0 ratings

Related issues

varna picture varna  路  4Comments

weijinnx picture weijinnx  路  3Comments

aaronhuisinga picture aaronhuisinga  路  3Comments

nilskoppelmann picture nilskoppelmann  路  3Comments

Amoki picture Amoki  路  3Comments