C# Class BrockAllen.MembershipReboot.Test.Authentication.TestAuthenticationService

Inheritance: AuthenticationService
Exibir arquivo Open project: brockallen/BrockAllen.MembershipReboot Class Usage Examples

Public Methods

Method Description
TestAuthenticationService ( UserAccountService svc ) : System

Protected Methods

Method Description
GetCurrentPrincipal ( ) : ClaimsPrincipal
IssueToken ( System principal, System.TimeSpan tokenLifetime = null, bool persistentCookie = null ) : void
RevokeToken ( ) : void

Method Details

GetCurrentPrincipal() protected method

protected GetCurrentPrincipal ( ) : ClaimsPrincipal
return System.Security.Claims.ClaimsPrincipal

IssueToken() protected method

protected IssueToken ( System principal, System.TimeSpan tokenLifetime = null, bool persistentCookie = null ) : void
principal System
tokenLifetime System.TimeSpan
persistentCookie bool
return void

RevokeToken() protected method

protected RevokeToken ( ) : void
return void

TestAuthenticationService() public method

public TestAuthenticationService ( UserAccountService svc ) : System
svc UserAccountService
return System