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
In the JSON Web Token (JWT) standard, the "aud" (audience) claim is a string or array of strings that identifies the recipients that the JWT is intended for.
Could you fix the line to check for a valid option inside an aud array as well?
The text was updated successfully, but these errors were encountered:
Hey,
I've updated the logic in #521 to support checking if the aud is an array of strings. I spun up a Zitadel instance to test but ran into issue after the aud is validated. It appears Zitdael isn't sending the nickname or preferred_username in the access token causing auth to ultimately fail. I'm not familiar with Zitdal, maybe you know a workaround for this?
If you want to try the partial fix you'll need to build the image using the branch in the PR.
I've testet the fix and the aud issue is fixed. To the nickname thing: I don't think there is a simple fix for this, as the idea is to use the https://example.com/oidc/v1/userinfo HTTP Endpoint for Zitadel in this case to get all of the user details. You should be able to clal this endpoint with the given jwt token and the endpoint is published on the well-known openid endpoint (as this endpoint differs from oidc provider)
Hi,
I have configured Zitadel as an OAuth Provider. The Login flow works, but in the Log file an error is printed and I'm not logged in.
The Error is
The JWT Payload is the following (part of):
I've identified the following line as the issue probably: https://github.com/Zibbp/ganymede/blob/main/internal/auth/oauth.go#L217
It seems the code expects
aud
as an string, but in my case it's an array, which is also an valid option for a JWT token. (https://mojoauth.com/glossary/jwt-audience/)Could you fix the line to check for a valid option inside an
aud
array as well?The text was updated successfully, but these errors were encountered: