-
-
Notifications
You must be signed in to change notification settings - Fork 537
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
Wrong configuration when running behind https load balancer #363
Comments
Not an OpenIddict issue. Your app is simply not configured to restore the real scheme from the proxy headers. Read aspnet/Security#929 for more information. |
Hi @kevinchalet, can you please suggest me, how to fix similar problem. I configured my project to have correct schema, host and PathBase:
But in .well-known/openid-configuration, I have a wrong response for authorization_endpoint, token_endpoint and end_session_endpoint: endpoints. I suppose that it will be:
But I have following response
The difference is in the /authorization/ part of the path. It keeps in the "Request.PathBase" according to my configuration and I can`t see it in this endpoints... Can you suggest me where is the exception? I setup this endpoints in Program.cs:
|
Hi @AndreyKrivcov, 6 year-old tickets are not monitored. If you need support, consider becoming a sponsor and opening a dedicated thread. Cheers. |
@kevinchalet It seems that I found an answer, thank you. For other people who will have a similar problem: the answer is here: #1613 |
If https is used to access the configuration e.g:
https://account.caricoin.com/.well-known/openid-configuration
I expect the configured endpoints to show https. Instead, they are showing http.
The application is running on http://localhost:5005 on the server behind the load balancer which is accessed via https (typical reverse proxy setup).
The text was updated successfully, but these errors were encountered: