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

Migrating from .NET Swashbuckle package: Add audience parameter #5101

Open
szaboand opened this issue Feb 4, 2025 · 0 comments
Open

Migrating from .NET Swashbuckle package: Add audience parameter #5101

szaboand opened this issue Feb 4, 2025 · 0 comments

Comments

@szaboand
Copy link

szaboand commented Feb 4, 2025

The following code worked for adding an audience parameter to Auth0 in the .NET Swashbuckle package.

app.UseSwaggerUI(options => options.UseRequestInterceptor("(req) => { if (req.url.endsWith('oauth/token') && req.body) req.body += '&audience=" + configuration["Auth0:Audience"] + "'; return req; }");

Is there a solution for this when migrating to the NSwag package?

Any idea appreciated. Thanks.

@szaboand szaboand changed the title Add audience parameter Migrating from .NET Swashbuckle package: Add audience parameter Feb 4, 2025
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

1 participant