Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. [AllowAnonymous]
  2. [HttpPost("Login")]
  3. [Produces("application/json")]
  4. public IActionResult Index(string returnUrl)
  5. {
  6. var redirectUrl = Url.Action("Callback", "ExternalLogin", new { ReturnUrl = returnUrl });
  7. var properties = _signInManager.ConfigureExternalAuthenticationProperties(Saml2Defaults.Scheme, redirectUrl);
  8.  
  9. return Challenge(properties, Saml2Defaults.Scheme);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement