I am using Swashbuckle for Swagger authorization using IdentityServer. I followed these steps: https://www.scottbrady91.com/Identity-Server/ASPNET-Core-Swagger-UI-Authorization-using-IdentityServer4.
This is the log record from IdentityServer:
2019-01-17 19:17:41.031 +01:00 [ERR] Invalid redirect_uri:
http://localhost:3200/oauth2-redirect.html
{
"ClientId": "demo_api_swagger",
"ClientName": "Swagger UI for API",
"AllowedRedirectUris": [
"http://localhost:5001/oauth2-redirect.html"
],
"SubjectId": "anonymous",
"RequestedScopes": "",
"Raw": {
"response_type": "token",
"client_id": "demo_api_swagger",
"redirect_uri": "http://localhost:3200/oauth2-redirect.html",
"scope": "api_data openid profile",
"state": "VGh1IEph etc.."
}
}
The log record says:
Invalid redirect_uri: http://localhost:3200/oauth2-redirect.html
but I do not set this address anywhere and have no idea where it comes from. How can I set the correct address for redirect?