Forum Discussion

bruiiser's avatar
bruiiser
Occasional Contributor
7 years ago
Solved

How can I support an OAuth2 grant type of 'password'

An API I'm tasked with testing uses a OAuth2 grant type string like this:

 

grant_type=password&username=johnsmith&password=somepassword

 

The selections available from the authentication manager do not generate this string. Is there a way to configure an OAuth2 authentication profile for this grant type? Let me know what you think. Thanks.

 

=bwh=

  • I've come up with a solution. By using the 'Resource Owner Password Credentials Grant' OAuth 2 Flow selection, and putting the username and password in _both_ the Resource and Client entries, with the Access Token Url what you would expect, a valid token can be retrieved.

     

    That's what I'll be using then! Thanks.

     

    =bwh=

1 Reply

  • bruiiser's avatar
    bruiiser
    Occasional Contributor

    I've come up with a solution. By using the 'Resource Owner Password Credentials Grant' OAuth 2 Flow selection, and putting the username and password in _both_ the Resource and Client entries, with the Access Token Url what you would expect, a valid token can be retrieved.

     

    That's what I'll be using then! Thanks.

     

    =bwh=