Closed nigel-dewar closed 7 years ago
If I understand correctly, you would like to use the client code of this project with the server-side code that uses an implicit flow like Damien's.
Major differences: this project does not decode the access token on the client and obviously does not use a reference token. Of course, you have to set different parameters such as _redirecturi.
I never used Auth0. Try to see this guide: https://auth0.com/docs/api-auth/tutorials/implicit-grant
Greetings
Cheers Roberto,
I reckon I have it figured out, I just need to combine a bit of code from Damiens with what you have and should be good.
Cheers
Hi There,
Thanks for your great sample. It has super useful info regarding Angular2-jwt usage with IDSvr.
All the samples I have seen thus far, including work from Damien Bod, ( https://github.com/damienbod/AspNet5IdentityServerAngularImplicitFlow ) has the angular client use implicit flow and redirects to the IdentityServer where the user chooses thier auth type, so they can choose 'local account' or google or whatever is setup on IdSvr.
Is it easy to switch your code from a ROPC flow to Implicit?
I have spent a bit looking at your sample code and that of Damien Bods, however I cannot see what I need to change properly.
In Damiens code the authorize function does a redirect to the IDSvr
So I'd say I'd need to implement the same redirect with your sample as well.
But.... Im just not sure how to handle the redirect using Auth0.
Anyways, you probably have the answer so I'll leave my question at that. Any assistance or answer on this would be greatly appreciated.
Cheers