Swagger client_credentials and authorization_code

Viewed 14

I have an API secured with bearer tokens issued by IdentityServer.

Some applications use client_credentials flow (which requires a client_secret), and a web UI uses authorization_code (with PKCE) (which does not require a client_secret.

On the swagger page in the authorization modal the client_secret text box is either present for both cases or absent for both cases according to whether I

.OAuthUsePkce();

in UseSwaggerUI.

enter image description here

Can I get both flows to work or does it have to be one or the other?

0 Answers
Related