Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [AllowAnonymous]
- [HttpPost("Login")]
- [Produces("application/json")]
- public IActionResult Index(string returnUrl)
- {
- var redirectUrl = Url.Action("Callback", "ExternalLogin", new { ReturnUrl = returnUrl });
- var properties = _signInManager.ConfigureExternalAuthenticationProperties(Saml2Defaults.Scheme, redirectUrl);
- return Challenge(properties, Saml2Defaults.Scheme);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement