Ejemplo n.º 1
0
 /// <summary>
 /// Action performed during SignOn.
 /// </summary>
 /// <param name="handler">The handler initiating the call.</param>
 /// <param name="context">The current http context.</param>
 /// <param name="assertion">The SAML assertion of the currently logged in user.</param>
 public void SignOnAction(AbstractEndpointHandler handler, HttpContext context, Saml20Assertion assertion)
 {
     FormsAuthentication.SetAuthCookie(Saml20PrincipalCache.GetPrincipal().Identity.Name, false);
 }
 /// <summary>
 /// Check if the Saml 2 Assertion's attributes have been correctly initialized.
 /// </summary>
 public static bool IsInitialized()
 {
     return(Saml20PrincipalCache.GetPrincipal() != null && Saml20PrincipalCache.GetPrincipal().Identity is Saml20Identity);
 }