-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
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
While making access token exchange call to Dex /userinfo API is giving 401 error #3395
Comments
Hello Maintainers, Could please help with the issue? |
Hello, @Vaishnavi-BH. It should be fixed by #3335 |
Hello @nabokihms, there are two questions,
We are using latest Dex version v2.38.0 and Helm-chart version 0.16.0 still getting 401 { "error": "access_denied"} If the changes are not added in the latest version, when we can expect new version/release with above changes? |
Hey @Vaishnavi-BH, the PR was merged but not released yet. You'll sadly need to wait for the next release (probably v2.39.0). The helm chart will be updated in a seperate release (probably 0.17.0). In case the helm chart isn't updated in time you can manually adjust the values to use the latest dex version.. once released. Hope that helps |
The release of Dex v2.39.0 is planned for the next week. |
Hello @nabokihms, Can you please provide tentative date for Dex release v2.39.0? |
Hi @MrDeerly / @nabokihms , Kindly let us know the approx date for the Dex v2.39.0 as we had some planned activities based on the same. cc : @Vaishnavi-BH |
It will be released somewhen this week, so if you want to arrange any plans, I'd suggest you aim at Monday 25th of March. |
I guess this issue can be closed 👍 |
Hi guys @Vaishnavi-BH @nabokihms @0x0dr1y, We urgently require to implement Dex with the OIDC connector. We have been facing this issue where it says:
Help would be greatly appreciated, couldn't find anything decisive anywhere, only open issues and unanswered discussions. Below is the config: connectors:
- config:
clientID: CLIENT_ID
clientSecret: CLIENT_SECRET
insecureEnableGroups: true
issuer: https://dev-88813151.okta.com/oauth2/default
redirectURI: https://dex.optiq.one/callback
scopes:
- profile
- email
- groups
id: okta
name: Okta
type: oidc
issuer: https://dex.optiq.one/
logger:
level: debug
oauth2:
alwaysShowLoginScreen: true
storage:
config:
inCluster: true
type: kubernetes
web:
allowedOrigins:
- '*'
http: 0.0.0.0:5556 |
Preflight Checklist
Version
2.38.0
Storage Type
Kubernetes
Installation Type
Official Helm chart
Expected Behavior
When making access token exchange call to Dex, it should return new access token is response.
Actual Behavior
When making access token exchange call to Dex getting error 401 { "error": "access_denied"}. In Dex logs its showing
message "failed to verify subject token: oidc: error loading userinfo: 401 Unauthorized: "
Steps To Reproduce
Additional Information
Made getUserInfo to true in config file as its required to make access token exchange call.
Postman curl:
curl --location 'http://localhost:5556/dex/token'
--header 'Content-Type: application/x-www-form-urlencoded'
--header 'Authorization: Basic bmV4dGdlbi1sb2dpbjpuZXh0Z2VuLWxvZ2lw'
--data-urlencode 'connector_id=okta'
--data-urlencode 'scope=profile groups openid email'
--data-urlencode 'requested_token_type=urn:ietf:params:oauth:token-type:access_token'
--data-urlencode 'grant_type=urn:ietf:params:oauth:grant-type:token-exchange'
--data-urlencode 'subject_token=eyJraWQiOiJ4QUtnNWl0RmpLOmp0aSI6IkFULnNFxxxxxxxxxxxxxxxxxxxxxxxx'
--data-urlencode 'subject_token_type=urn:ietf:params:oauth:token-type:access_token'
Configuration
Logs
The text was updated successfully, but these errors were encountered: