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:

  1. the /token endpoint should require client secret , single page applications (spa) have no way of keeping secrets safe.
  2. 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.
  3. your application may have security issues expose passwords attackers - unnecessary risk.
  4. 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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -