You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have been using 0.3.1 version of the EDC connector together with the OAuth2 Identity Service extension. We used keycloak as the Identity Server.
Now, we have upgraded the EDC connector to version 0.5.1, and we are having problems when the connector tries to get a token from keycloak. The connector invokes the Keycloak service specified at edc.oauth.token.url configuration parameter (e.g.: /realms/bcssd/protocol/openid-connect/token) posting the following data:
[
{
"message": "Unable to obtain credentials: Server response to [POST, http://ekodata2.tri.lan:8080/realms/bcssd/protocol/openid-connect/token] was not one of [200] but was 400: {\"error\":\"invalid_client\",\"error_description\":\"Client authentication with signed JWT failed: Token reuse detected\"}",
"type": "BadGateway",
"path": null,
"invalidValue": null
}
]
Thanks for your contribution 🔥 We will take a look asap 🚀
idoiamurua
changed the title
EDC 0..5.1 - OAuth2 Identity Service extension: : scope empty and keycloak gives back error
EDC 0.5.1 - OAuth2 Identity Service extension: : scope empty and keycloak gives back error
Feb 27, 2024
idoiamurua
changed the title
EDC 0.5.1 - OAuth2 Identity Service extension: : scope empty and keycloak gives back error
EDC 0.5.1 - OAuth2 Identity Service extension: scope empty and keycloak gives back error
Feb 27, 2024
Bug Report
Describe the Bug
We have been using 0.3.1 version of the EDC connector together with the OAuth2 Identity Service extension. We used keycloak as the Identity Server.
Now, we have upgraded the EDC connector to version 0.5.1, and we are having problems when the connector tries to get a token from keycloak. The connector invokes the Keycloak service specified at edc.oauth.token.url configuration parameter (e.g.: /realms/bcssd/protocol/openid-connect/token) posting the following data:
grant_type=client_credentials&scope=&client_assertion=
where scope is empty,.
Keycloak server answers with the following error message:
{"error":"invalid_scope","error_description":"Invalid.scopes:."}
Expected Behavior
May be if no scope parameter is sent to keycloak when invoking edc.oauth.token.url service, keycloak would return the token correctly.
Observed Behavior
Keycloak returns the following error:
{"error":"invalid_scope","error_description":"Invalid.scopes:."}
Steps to Reproduce
Context Information
image: quay.io/keycloak/keycloak:22.0.3
Possible Implementation
Remove scope parameter when invoking edc.oauth.token.url ?
The text was updated successfully, but these errors were encountered: