<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
0D51Y00009Y18xSSAROkta Identity EngineAccess GatewayAnswered2020-10-06T21:02:23.000Z2020-09-29T13:26:16.000Z2020-10-06T21:02:23.000Z

MarioS.26004 (Customer) asked a question.

Get refresh token for Service Application

I am creating a .NET Core Web Api to be consumed by my application tenants.

In Okta, I created a Service Application, intended to have 1 application for each of my tenant to make sure client_id and secret will not be shared. The client_id and secret from Okta will be given to my tenant and pass through my Web Api to get 'client_credentials'.

I wanted my application to be able to check, that if the 'client_credentials' is about to expire, my Web Api will automatically request for the new 'client_credentials' using the supposed to be 'refresh_token'.

When I try to pass 'refresh_token' as 'grant_type', I'm getting an error: The client is not authorized to use the provided grant type. Configured grant types: [client_credentials].

 

How do I get 'refresh token' for Service Application? Is this even possible?

 

 


  • User15870975291971586699 (Vendor Management)

    Greetings !

    This is Andrei on behalf of Okta's Customer Support!

    Be sure to specify refresh_token as a data_type value for the grant_type parameter.

    Alternatively, after you set up an application, you can select the Refresh Token option for Allowed grant types on the General Settings tab in the Admin Console.

    Please also check this documentation: https://developer.okta.com/docs/guides/refresh-tokens/overview/ and consider to open a support ticket if you need further assistance with this matter.

    Expand Post
This question is closed.
Loading
Get refresh token for Service Application