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
I setup the OIDC for the Web Admin. It works. And I can login with the same keycloak session on 2 sftpgo.
I try to call the Rest API when a fresh token from keycloak realms/${keycloak_realm}/protocol/openid-connect/token.
I got a 401 (log : 2024-11-28T09:22:02.385048216Z {"level":"debug","time":"2024-11-28T09:22:02.384","sender":"httpd","message":"error getting jwt token: token is unauthorized"})
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I try to call REST API throught a Keycloak Oauth.
I setup the OIDC for the Web Admin. It works. And I can login with the same keycloak session on 2 sftpgo.
I try to call the Rest API when a fresh token from keycloak
realms/${keycloak_realm}/protocol/openid-connect/token
.I got a 401 (log :
2024-11-28T09:22:02.385048216Z {"level":"debug","time":"2024-11-28T09:22:02.384","sender":"httpd","message":"error getting jwt token: token is unauthorized"}
)The Keycloak POST request body is :
The token payload data :
I try the same call with the basic auth
/api/v2/token
. It works.The token payload data :
Beta Was this translation helpful? Give feedback.
All reactions