<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
0D54z0000A1D9H8CQKOkta Classic EngineAuthenticationAnswered2026-03-23T19:12:03.000Z2024-02-21T22:43:47.000Z2024-02-22T00:47:18.000Z

KeithB.35916 (Customer) asked a question.

Refresh token - How do you use a refresh token to get a new access token

How do you use a refresh token to get a new access token?

Currently getting a 400 with the following response body:

{

"error": "unauthorized_client",

"error_description": "The client is not authorized to use the provided grant type. Configured grant types: [client_credentials]."

}


  • Tim LaBorn (Workflows)

    @KeithB.35916 (Customer)​ -- Based on the RFC a refresh token wouldn't be utilized with the grant type [client_credentails] that you are leveraging:

     

    https://www.rfc-editor.org/rfc/rfc6749#section-4.4

     

    4.4.3. Access Token Response

     

    If the access token request is valid and authorized, the

    authorization server issues an access token as described in

    Section 5.1. A refresh token SHOULD NOT be included.

     

    From my understanding with client_credentials is you request a new access token once the current one is expired using the same process you obtained the first one. Keep in mind client_credentials doesn't require a "user interaction to consent" like Authorization Code grant type. This is the whole reason you need a refresh token for this grant type since you don't want to have to manually consent every X period of time when 401 is returned.

    Expand Post
This question is closed.
Loading
Refresh token - How do you use a refresh token to get a new access token
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply