C
C#8mo ago
Alex

✅ Challenge does not redirect

[HttpPost("sign-in/external")]
public IActionResult SignInExternal([FromQuery] string provider ="Google", [FromQuery] string returnUrl = "https://localhost:8080/api/identity/sign-in/google")
{
AuthenticationProperties properties = _identityService.SignInExternal(provider,returnUrl);

return Challenge(properties,provider);
}
[HttpPost("sign-in/external")]
public IActionResult SignInExternal([FromQuery] string provider ="Google", [FromQuery] string returnUrl = "https://localhost:8080/api/identity/sign-in/google")
{
AuthenticationProperties properties = _identityService.SignInExternal(provider,returnUrl);

return Challenge(properties,provider);
}
What can be the reason?
2 Replies
Devin F.
Devin F.8mo ago
you want to return a view or page. is control ever coming to this method? can you set a breakpoint at the top and it hits it?
Alex
AlexOP8mo ago
I want return redirection to Google's sign in page where user can choose account to sign in with
Want results from more Discord servers?
Add your server