auth0-samples / auth0-aspnetcore-mvc-samples

Auth0 Integration Samples for ASP.NET Core MVC Web Applications
https://auth0.com/docs/quickstart/webapp/aspnet-core
MIT License
152 stars 199 forks source link

Not set to SSL #88

Closed cmarkwick365 closed 1 year ago

cmarkwick365 commented 1 year ago

Checklist

Description

The sample needs to default to SSL to be able to configure redirect URIs

Reproduction

Currently the sample defaults to http instead of https. Needs app.UseHttpsRedirection() added and a SSL port needs to be enabled in the launch settings,

Additional context

No response

frederikprijck commented 1 year ago

The sample is explicitly configured with http instead of https, even though we do recommend always enabling https.

You should be able to use http://localhost as a redirect_uri, can you elaborate what's not working for you?

cmarkwick365 commented 1 year ago

The question is why does the sample not have HTTPS enabled out of the box? It would be much easier to just clone the sample app without having to modify it to get it to work with HTTPS.

frederikprijck commented 1 year ago

Thanks for the feedback, and i don't disagree.

We are using http due to some internal automation tooling regarding our quickstarts that work for all technologies (you can download this sample through our quickstarts page and have all values filled in, and have your auth0 tenant be configured for u)

Even though it's easy for dotnet to enable HTTPS, it's not the case for other technologies.

I do agree we want to see if we can use https for all, or some. But for the time being, we will need to stick to HTTP.