Home > Software design >  Identity Server 4 - REST API request to authenticate user
Identity Server 4 - REST API request to authenticate user

Time:01-12

I am currently diving into Identity Server 4 and working on a local project for my own learning.

I currently have a login page located within the Identity Server 4 project which allows the user to login, this works perfectly fine.

The question I have is, can I make a REST API request passing in username and password to authenticate the user instead of using the login page located within the Identity Server project? this may sound a very simple question for some, but my knowledge on this is very limited at present.

CodePudding user response:

You are talking about Resource owner password flow.
It allows you to request access token with username/password pair. After that you can use access token in a usual way to access your API.
Link above says that

The spec recommends using the resource owner password grant only for “trusted” (or legacy) applications.

  •  Tags:  
  • Related