<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Resource Owner Password Grant Type Error with the /token Request: "invalid_grant": "The credentials provided were invalid"
API Access Management
Okta Classic Engine
Okta Identity Engine
Overview

This article explains why the /token request could cause the error below with the resource owner password grant type.

invalid_grant": "The credentials provided were invalid


Resource Owner Error 

Applies To
Cause

The cause of this error is that either the username or the password in the /token call's request body is incorrect or contains special characters.

Solution

Ensure that the username and password are passed correctly in the Body section of the /token request.
resrouce owner password body 

Loading
Resource Owner Password Grant Type Error with the /token Request: "invalid_grant": "The credentials provided were invalid"