Oauth password grant type

I’m using the oauth2 provider in tyk to authorize clients. I’m getting the following error message while calling the oauth/token endpoint

Method: POST

grant_type = password
client_id = cb417e700ac346244994064736c5c119
username = [email protected]
password = test1243



Error message:

{“error”:“access_denied”,“error_description”:“The resource owner or authorization server denied the request.”}

I’m using my tyk dashboard account to create the token, but is this the right way?

The username and password you use must be a token (basic auth) that you generate in the dashboard, not a dashboard user.

I’m using the oauth Authentication mode for the api, not basic auth? So where can I create these credentials?

Fixed it, I have created one in the key section! Thanks for you help!

1 Like