amkirwan / ember-oauth2

JavaScript library for using OAuth 2.0 Implicit Grant flow (Client-Side Flow) with Ember.js
MIT License
133 stars 22 forks source link

Support for non popup window workflows? #26

Open aalmazan opened 7 years ago

aalmazan commented 7 years ago

Hi there,

I'm running into a problem with integrating Stripe's OAuth2 using the preferred workflow. It seems that after logging in, Stripe will nullify window.opener thus making any subsequent OAuth callbacks useless since it won't have any previous context to use.

From what I see here: https://github.com/amkirwan/ember-oauth2/blob/master/addon/services/ember-oauth2.js#L55, it looks like authorize() will always create a new window to kickstart the OAuth process.. so I'm assuming no?

EDIT: Forgot to add references related to Stripe issue:

amkirwan commented 7 years ago

Are you using the client-side (Implicit grant flow) workflow for authorization with stripe?