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

Swagger Options #34

Open
hishamco opened this issue Feb 12, 2022 · 3 comments
Open

Swagger Options #34

hishamco opened this issue Feb 12, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@hishamco
Copy link
Member

We may add SwaggerOptions, this may include:

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

last two will optional to implement

@bcampardou
Copy link

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.

@hishamco
Copy link
Member Author

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

@hyzx86
Copy link

hyzx86 commented May 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants