We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
- Do you want to request a feature or report a bug? Bug
- What is the current behavior?
git-gateway can't handle Auth0 token with audience formatted as array.
Auth0 JWT: { "iss": "...", "sub": " ...", "aud": [ "https://git-gateway" <-- array ], ... } git-gateway returns: {"code":401,"msg":"Invalid token: json: cannot unmarshal array into Go struct field GatewayClaims.aud of type string"}
- If the current behavior is a bug, please provide the steps to reproduce.
aud
From
"aud": "https://git-gateway"
to
"aud": [ "https://git-gateway" ],
- What is the expected behavior? git-gateway can handle audience as an array
- Please mention your Go version, and operating system version. Running in a container built with the included Dockerfile.
Edit: it is a known issue the jwt library: dgrijalva/jwt-go#308
git-gateway/api/auth.go
Line 40 in 4988d02
Update: I have made a fix. Upgrading jwt library to the latest. PR to come.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
git-gateway can't handle Auth0 token with audience formatted as array.
- If the current behavior is a bug, please provide the steps to reproduce.
aud
in the payload from a string to an array. Ex:From
to
- What is the expected behavior?
git-gateway can handle audience as an array
- Please mention your Go version, and operating system version.
Running in a container built with the included Dockerfile.
Edit: it is a known issue the jwt library: dgrijalva/jwt-go#308
git-gateway/api/auth.go
Line 40 in 4988d02
Update: I have made a fix. Upgrading jwt library to the latest. PR to come.
The text was updated successfully, but these errors were encountered: