Comments (4)
@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.
@FeiChen-okta I checked on my org oidc configuration contains both authorization_code
and refresh_token
:
- 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.
@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.
@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)
- test bug report
- test feature
- Duplicate class a.a found in modules jetified-devices-core-0.0.1-runtime (com.okta.devices:devices-core:0.0.1) HOT 3
- Cannot build app with this SDK without data@scheme attribute in AndroidManifest HOT 7
- User can still see Push notification enrollment method on the web, after deleting enrollment with SDK HOT 24
- Crash on Sample App startup, after adding local.properties and google-services.json HOT 5
- Usage of deprecated SafetyNet Attestation API HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okta-devices-kotlin.