SHARE
TWEET

Untitled

a guest Jun 17th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top