I'm doing a Restful web service, is OAuth the best way to authenticate and work with token?
Is it possible to use OAuth2 to authenticate via username and password?
I'm doing a Restful web service, is OAuth the best way to authenticate and work with token?
Is it possible to use OAuth2 to authenticate via username and password?
Authorization through the OAuth protocol is the primary form of authorization I use in my applications. It is possible for clients to gain access to the application's resources using access tokens, which can be obtained by providing a user name and password, or a token update.
It is therefore possible to obtain an access token using a username and password - see section 1.3.3 of RFC 6749, which specifically addresses this type of access:
What I do is the following: