ember.js - EmberJS - Handling 3rd party redirect authentication -


i'm using ember-simple-auth ember app, don't have api endpoint authenticate users, rather page redirect form , signs user in, redirects app. (i don't own authentication)

after authentication, gets redirected me, know on server side when user has been authenticated. how manually authenticate users' session when redirected app?

currently did hack write 2 cookies: ember_simple_auth:access_token , ember_simple_auth:authenticator.

i think setting session store manually ok solution in scenario trigger session restored after redirect (which on startup of ember application). i'd maybe configure custom authenticator redirects external login page in authenticate method. way have redirect centralized , triggered automatically whenever ember simple auth automatically enforces session authentication (e.g. authenticatedroutemixin).


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -