C#C
C#2y ago
Alex

✅ redirect url is not passed to request

My custom redirect url is not passed to the url for google oauth. What can I change to fix the problem?
        public IActionResult Login()
        {
            string redirectUrl = "https://localhost:8080/api/identity/signin-google";

            AuthenticationProperties properties =
                _signInManager.ConfigureExternalAuthenticationProperties("Google",redirectUrl);

            return Challenge(properties, "Google");
        }
image.png
Was this page helpful?