Stream: troubleshooting

Topic: โœ” failRetrieveToken


view this post on Zulip Mohsen Jafari (Mar 12 2024 at 15:59):

My OIDC's token endpoint returns the following result:

{"access_token":"MY_ACCESS_TOKEN","id_token":"MY_ID_TOKEN","token_type":"Bearer"}

But I get this error in the server.log:

edu.harvard.iq.dataverse.authorization.providers.oauth2.OAuth2Exception: auth.providers.token.failRetrieveToken
at edu.harvard.iq.dataverse.authorization.providers.oauth2.oidc.OIDCAuthProvider.getAccessToken(OIDCAuthProvider.java:277)
at edu.harvard.iq.dataverse.authorization.providers.oauth2.oidc.OIDCAuthProvider.getUserRecord(OIDCAuthProvider.java:223)
at edu.harvard.iq.dataverse.authorization.providers.oauth2.OAuth2LoginBackingBean.exchangeCodeForToken(OAuth2LoginBackingBean.java:103)
at edu.harvard.iq.dataverse.authorization.providers.oauth2.OAuth2LoginBackingBean$Proxy$_$$_WeldSubclass.exchangeCodeForToken(Unknown Source)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at jakarta.el.ELUtil.invokeMethod(ELUtil.java:227)
at jakarta.el.BeanELResolver.invoke(BeanELResolver.java:481)...

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 12 2024 at 18:02):

You're still on alpha/6.1 right? So this line? https://github.com/IQSS/dataverse/blob/v6.1/src/main/java/edu/harvard/iq/dataverse/authorization/providers/oauth2/oidc/OIDCAuthProvider.java#L277

view this post on Zulip Mohsen Jafari (Mar 14 2024 at 11:30):

Your link helped me and I solved the problem. My token endpoint should have returned a 200 OK status code along with the token. Thanks.

view this post on Zulip Notification Bot (Mar 14 2024 at 11:30):

Mohsen Jafari has marked this topic as resolved.


Last updated: Oct 30 2025 at 06:21 UTC