-
Notifications
You must be signed in to change notification settings - Fork 18
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
Best approach when all routes requires an authenticated user #45
Comments
I can put together a small demo for you later this week. Off the top of my head, I think it is as simple as adding the following to the
See https://github.com/shaunluttin/aurelia-open-id-connect/blob/master/src/open-id-connect.ts for the plugin API. You might also what to try |
Thanks, I did try something like you descibed, but it sometimes ended in a loop, but I did'nt do much testing. If you would create a small demo, that would be really great! |
Apologies for not having responded. I have been away from the computer for a while. |
This appears to work in the app.ts code:
|
Hi all, I remember I posted a piece of code before as well. On an issue, including a check if the user is still logged in. I'll try to find it. |
Maybe you can find your answer here: |
The login silent call is to check if the current user still has a valid session. Because userdetails are placed in local storage. |
I'll see if I can get this baked in, we did something similar in a project of ours |
Hi! First, thanks for this plugin, it works great!
In our new app we only allows authenticated users. That is, we dont need a login button. If the user is not logged in, the app should imediatly redirect to the STS (Identityserver).
What are the recommended way of doing this?
This is what we want to achive:
Are there any build in functionality in the plugin to help with this?
The text was updated successfully, but these errors were encountered: