Redirect URI being ignored when being set in ASP.NET web app
jcvandan opened this issue · 1 comments
jcvandan commented
Checklist
- I have looked into the Readme and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
I have an Account/Login action method and the WithRedirectUri
is being ignored.
public async Task Login(string returnUrl = "/")
{
var authenticationProperties = new LoginAuthenticationPropertiesBuilder()
.WithRedirectUri("https://google.com")
.Build();
await HttpContext.ChallengeAsync(Auth0Constants.AuthenticationScheme, authenticationProperties);
}
Given the redirect Uri https://google.com
above the following Auth0 URL is the result:
https://journey-builder.uk.auth0.com/authorize?client_id=6Yx5lFaqSqiE1hGznQ2wxQeuLqfPxO98&redirect_uri=http%3A%2F%2Fjb-stg1-uksouth-cus-admin.azurewebsites.net%2Fcallback&response_type=id_token&scope=openid%20profile&response_mode=form_post&nonce={redacted}&x-client-SKU=ID_NET8_0&x-client-ver=7.1.2.0
As can be seen the redirect uri is http://jb-stg1-uksouth-cus-admin.azurewebsites.net/callback
. The strange thing about this is that this isn't even the url of the my site as my site is running on https
.
As a side note, the callback and login URL's in my Auth0 application are set to the https versions of the url so nothing is coming from there.
Is the WithRedirectUri
just totally ignored?
Reproduction
See example in description above.
Additional context
No response
auth0.net version
1.4.1
.NET version
8
jcvandan commented
Sorry this was my issue in the end