ember-simple-auth icon indicating copy to clipboard operation
ember-simple-auth copied to clipboard

Best Authentication practice in case of seperate auth url

Open ahemed-haneen opened this issue 5 years ago • 0 comments

I have a scenario where on loading the ember app, if the session is not authenticated, i redirect to an authentication portal.

once authentication is completed there, we redirect back to the app.

this is handled using cookies.

But my concern is that

even if i add the authentication code to the beforeModel Hook of application route, the app loads once, redirects to the session authentication, redirects back and loads again.

Hence 2 Loads

is there any way to avoid this and ensure that the full app gets loaded only if the session is authenticated?

ahemed-haneen avatar Oct 15 '20 10:10 ahemed-haneen