You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using C# 8 with Swashbuckle.AspNetCore.Swagger, Swashbuckle.AspNetCore.SwaggerGen & Swashbuckle.AspNetCore.Annotations at version 6.5.0
Using what seems to be appropriate configuration (documentation is terrible), I have implemented OpenId as an authorization method for swagger UI as below;
However, when running, the Swagger UI has no available authorizations (as shown below). I cannot find any documentation or example code on how to implement this. I have tried many suggestions from stackoverflow with no success, so I'm assuming there is either a bug or you need to update/add documentation covering OpenId.
The text was updated successfully, but these errors were encountered:
Alternatively, if you add a custom Swagger index.html that uses the latest version of swagger-ui, does that fix it? I have #2806 open to update the version of SwaggerUI we repackage.
I face similar issue, this is due to CORS. whitelist the client IP in the server and you will get it populated.
however I faced another issue in the callback page with this error
AuthenticationFailureException: An error was encountered while handling the remote login.
I am using C# 8 with
Swashbuckle.AspNetCore.Swagger
,Swashbuckle.AspNetCore.SwaggerGen
&Swashbuckle.AspNetCore.Annotations
at version6.5.0
Using what seems to be appropriate configuration (documentation is terrible), I have implemented OpenId as an authorization method for swagger UI as below;
I also set the
ClientId
andClientSecret
inside theUseSwaggerUI
options as below (Secret has been redacted);However, when running, the Swagger UI has no available authorizations (as shown below). I cannot find any documentation or example code on how to implement this. I have tried many suggestions from stackoverflow with no success, so I'm assuming there is either a bug or you need to update/add documentation covering OpenId.
The text was updated successfully, but these errors were encountered: