Reputation: 2328
I am just getting started with IdentityServer4 and working my way through different tutorials and articles.
I understand that there are different flows for different architectures. I build mostly Single Page Apps (with Angular). As far as I've understood it I have basically two options to authenticate and then authorize:
Everywhere I look, it is stated that Implicit flow would be better (in one regard or the other).
Why is that?
I would be the product owner of both the API and the SPA.
Upvotes: 3
Views: 1155
Reputation: 453
Besides the good points Ján has made, it is worth noting that you won't get SSO if you use Resource Owner Password flow. If you use implicit flow the Identity Server can store the user like any website can, whereas with Resource Owner Password you cannot see if the user has previously authenticated for another service with the Identity Server.
Upvotes: 0
Reputation: 8431
There are at several reasons for the Implicit flow being better than the Resource Owner Password:
/token
endpoint should require a client secret and single page applications (SPA) have no way of keeping their secrets safe.Maybe someone else will add other reasons that didn't come to my mind.
Upvotes: 2