This repository contains an example API showing how Swagger-UI can be used as a client application in OAuth2 to call an API.
For the full article see this blog post
You can use the following client id and client secret to try out the example:
Client ID: p58vrQZo4YX40WdHt2da5oUUoNdmDJrL
Client Secret: M2lNi4QxXnMvR40O4W12pU975Zho09f8z5JhJ2A7BqPw2LdjyTBEhVCRP_yqfGbK
Use the credentials below to authenticate:
Username: user@example.com
Password: acm!KJY7ucw4vjw7rxd
The Auth0 client application has been configured to allow the two CORS origins below:
https://localhost:7285
http://localhost:5244