private ITicket CheckAuthenticatedAndGetTicket() { AuthenticateDirElement aDir = AuthenticateDirSettings.GetConfig().AuthenticateDirs.GetMatchedElement <AuthenticateDirElement>(); bool autoRedirect = (aDir == null || aDir.AutoRedirect); PassportManager.CheckAuthenticated(autoRedirect); bool fromCookie = false; return(PassportManager.GetTicket(out fromCookie)); }
private ITicket CheckAuthenticatedAndGetTicket() { AuthenticateDirElement aDir = AuthenticateDirSettings.GetConfig().AuthenticateDirs.GetMatchedElement <AuthenticateDirElement>(); bool autoRedirect = (aDir == null || aDir.AutoRedirect); PassportManager.CheckAuthenticated(autoRedirect); TicketSource ticketSource = TicketSource.Unknown; return(PassportManager.GetTicket(out ticketSource)); }