Skip to content
New issue

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

Add support for FlattenAudience #21

Open
marhag87 opened this issue Feb 19, 2025 · 1 comment
Open

Add support for FlattenAudience #21

marhag87 opened this issue Feb 19, 2025 · 1 comment

Comments

@marhag87
Copy link

I am trying to mock a service that unfortunately doesn't follow spec. The JWT library you use has support for flattening the audience, but this is not exposed in your project. I was able to add the following code to https://github.com/murar8/local-jwks-server/blob/main/internal/token/token.go#L66 to fix my problem locally, but I am not good enough at GO to make a pull request. t.Options().Enable(jwt.FlattenAudience)
The line was taken from the following example in the library: https://github.com/lestrrat-go/jwx/blob/develop/v3/examples/jwt_flatten_audience_example_test.go

Thank you for a great project!

@murar8
Copy link
Owner

murar8 commented Feb 21, 2025

Hi @marhag87, makes sense, let me take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants