We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bearer
Hi, I'm trying and use okta-sdk-nodejs from a Service App which is a cronjob linked to a well-configured service app.
okta-sdk-nodejs
I followed this documentation : https://developer.okta.com/docs/guides/build-api-integration/main/
I took time to entirely setup the flow so I have a full working credentials-saving flow, such as I'm now able to base my requests by :
org
client_id
client_secret
Still following the aforementionned docs, I'm able to produce scoped access_tokens with a raw client_credentials flow.
access_token
client_credentials
I'm now at the step where I want to use the Okta API.
I tried and use oktaClient.userApi.listUsers(), but I got a
oktaClient.userApi.listUsers()
[OktaApiError: Okta HTTP 401 E0000011 Invalid token provided. ]
Logging the headers, I saw that the SDK is trying to use my access_token as a SSWS :
SSWS
{ Authorization: 'SSWS eyXXXXXXXXXXXXXXXXXXXXX', 'User-Agent': '@okta/okta-sdk-nodejs/7.1.1 node/18.18.0 darwin/23.5.0', Accept: 'application/json, */*;q=0.8' }
I went and naively tried authorizationMode: 'Bearer' without success and got
authorizationMode: 'Bearer'
Unknown Authorization Mode
Is there a way to use a raw Bearer from a service app style client_credentials ?
Main okta client and options.
https://developer.okta.com/docs/guides/build-api-integration/main
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the feature request?
Hi, I'm trying and use
okta-sdk-nodejs
from a Service App which is a cronjob linked to a well-configured service app.I followed this documentation : https://developer.okta.com/docs/guides/build-api-integration/main/
I took time to entirely setup the flow so I have a full working credentials-saving flow, such as I'm now able to base my requests by :
org
domainclient_id
andclient_secret
Still following the aforementionned docs, I'm able to produce scoped
access_token
s with a rawclient_credentials
flow.I'm now at the step where I want to use the Okta API.
I tried and use
oktaClient.userApi.listUsers()
, but I got aLogging the headers, I saw that the SDK is trying to use my
access_token
as aSSWS
:I went and naively tried
authorizationMode: 'Bearer'
without success and gotIs there a way to use a raw
Bearer
from a service app styleclient_credentials
?New or Affected Resource(s)
Main okta client and options.
Provide a documentation link
https://developer.okta.com/docs/guides/build-api-integration/main
Additional Information?
No response
The text was updated successfully, but these errors were encountered: