Giter Site home page Giter Site logo

Comments (4)

FeiChen-okta avatar FeiChen-okta commented on June 16, 2024

@pkrawczykObj Can you check your orgs oidc configuration. go to
https://{yourorg}/.well-known/openid-configuration?oauthClientId={oidcClientId}

Check the grant_types_supported to see if it has authorization_code and refresh_token.
If they don't exists you will need to enable them in you OIDC app integration. In your okta org you need to enable authorization code and refresh token. See the Native apps section in:
https://help.okta.com/en-us/Content/Topics/Apps/Apps_App_Integration_Wizard_OIDC.htm

from okta-devices-kotlin.

pkrawczykObj avatar pkrawczykObj commented on June 16, 2024

@FeiChen-okta I checked on my org oidc configuration contains both authorization_code and refresh_token:

image - this is the screenshot from my orgs: "https://{yourorg}/.well-known/openid-configuration?oauthClientId={oidcClientId}".

Even the error message says, that my client has those 2 values configured:
"com.okta.devices.api.errors.DeviceAuthenticatorError$InternalDeviceError: The client is not authorized to use the provided grant type. Configured grant types: [refresh_token, authorization_code]."

The question is, which grant type should be provided in addition to those 2? Looking into the documentation:
https://developer.okta.com/docs/guides/authenticators-custom-authenticator/android/main/#maintenance-token-configuration-and-usage

To successfully obtain the maintenance token, developer must first configure his Okta OIDC application to support the JWT Bearer grant type:, but according to the understanding from our backend team, when you use the Admin Console to add or update the OIDC application in a custom authenticator, the application automatically updates with the JWT Bearer grant type”".

But it seems that it is not working, how to set it up?

from okta-devices-kotlin.

FeiChen-okta avatar FeiChen-okta commented on June 16, 2024

@pkrawczykObj
The link for this instruction seem to be missing. We will communicate the steps to do this via a customer support rep.

from okta-devices-kotlin.

pkrawczykObj avatar pkrawczykObj commented on June 16, 2024

@FeiChen-okta we managed to update "grant_types" list via postman (https://www.postman.com/okta-eng/workspace/okta-example-collections/request/26510466-4b5017c1-b64f-4e59-be68-43df4dc6811a) and now AuthenticatorClient#retrievePendingChallenges is working fine:

"grant_types": [
"refresh_token",
"authorization_code",
"urn:ietf:params:oauth:grant-type:jwt-bearer"
],

This issue can be closed.

from okta-devices-kotlin.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.