Pass parameter from Swagger to IdentityServer8 for authentication
04:01 27 Oct 2025

I'm using Swagger UI to test APIs that require authentication to IdentityServer8 via OAuth 2.0 implicit flow. Is there any way to pass a custom parameter from Swagger UI to IdentityServer8 during authentication? Either a free-text field, or a dropdown list to select from values returned by the server? Here:

Swagger authorization

A really hacky way would be to make it part of the client ID, but that's quite hard to do. I was hoping there was a better way!

oauth-2.0 identityserver4 swagger-ui