OrchardCoreContrib.Modules icon indicating copy to clipboard operation
OrchardCoreContrib.Modules copied to clipboard

Swagger Options

Open hishamco opened this issue 3 years ago • 3 comments

We may add SwaggerOptions, this may include:

  • Route Template
  • Ability to change icon
  • Ability to change style

last two will optional to implement

hishamco avatar Feb 12 '22 13:02 hishamco

It could be great to add oauth2 support too. Swagger should be able to get an access_token from an open id server and then use it to access apis.

bcampardou avatar Mar 28 '23 12:03 bcampardou

I'm planning to work on OpenId module, in case you want to add a new feature, you 're welcome to submit a PR

hishamco avatar Mar 28 '23 13:03 hishamco

I've implemented OpenId authorization for SwaggerUI here

https://github.com/EasyOC/EasyOC.Modules/tree/main/src/Modules/EasyOC.SwaggerUI

But there's a bit of an issue, Because the OpenId module needs to configure the authorization address, the relative path was supported in the OpenId client recipe in the earlier version, but it was not supported after the subsequent update. I had to change it to http://localhost/xxxx and then the user manually update the OpenId client configuration

hyzx86 avatar May 07 '23 13:05 hyzx86