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

Using Open ID Connect With Swagger #55

Open
DreamDelerium opened this issue Dec 12, 2023 · 2 comments
Open

Using Open ID Connect With Swagger #55

DreamDelerium opened this issue Dec 12, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@DreamDelerium
Copy link

Hello! Swagger works fine unless my controllers and/or methods are marked as [Authorize] or [Authorize(Roles = "SomeRoleName")]. Then, if I try to run the method in Swagger, I of course get a 401 exception. But, there is no way to login when in Swagger. Is this possible?

@damienbod
Copy link
Owner

Hi @DreamDelerium

You can create a new OIDC client and login from swagger. As swagger is a UI, it needs to authenticate to get access.

I will add docs for this, I normally need required this as I disabled my swagger in production deployments.

I will make docs for this. Thanks for reporting.

Greetings Damien

@damienbod damienbod added enhancement New feature or request documentation Improvements or additions to documentation labels Dec 12, 2023
@DreamDelerium
Copy link
Author

Thank you! I really appreciate it!

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

No branches or pull requests

2 participants