andychiare / auth0-core-identity-app

1 stars 1 forks source link

Setting up Auth0 in production for Blazor Server #1

Open tanakamawere opened 2 days ago

tanakamawere commented 2 days ago

Hie there

https://auth0.com/blog/auth0-authentication-blazor-web-apps/

I followed your blog post to a tee and I got it working for localhost, logging in and logging out. But for my production side, it's not working as I expect

  1. From the Blazor server app, it is setting the callback url to http for some reason. I want my callback url to https://app.medbase.co.zw/callback but in the Auth0 logs, it is coming back as http://. So I set that as the callback url, the http, but it's obviously not secure.
  2. After logging in, when it tries to go back to the app through the callback url, it's providing the following error "This page isn’t working app.medbase.co.zw is currently unable to handle this request. HTTP ERROR 500"

Please help

andychiare commented 1 day ago

Hi @tanakamawere, Do you mind posting this issue to the article's comments? Just for context and visibility to help others with the same issue.

Nonetheless, it is not clear to me what the environment in which you release the application is, but I think it is an environment with a proxy, a load balancer, or some other networking element. In this case, maybe this article can be helpful to you