identityserver4 - How is OAuth 2.0 "Implicit Flow" better than "Resource Owner Password"? -
i getting started identityserver4 , working way through different tutorials , articles.
i understand there different flows different architectures. build single page apps (with angular). far i've understood have 2 options authenticate , authorize:
- implicit flow
- resource owner password (just calling token endpoint)
everywhere look, stated implicit flow better (in 1 regard or other).
why that?
i product owner of both api , spa.
there @ several reasons implicit flow being better resource owner password:
- the
/token
endpoint should require client secret , single page applications (spa) have no way of keeping secrets safe. - users have more trust in oauth2 server applications using it. when using resource owner password flow, application reads username , password, users may reluctant enter it.
- your application may have security issues expose passwords attackers - unnecessary risk.
- with resource owner password flow, it's hard implement multiple different authentication methods. using implicit flow, free.
maybe else add other reasons didn't come mind.
Comments
Post a Comment