Interface IAuthenticationTokenHelper<TAuthenticationToken>
A helper for setting and retrieving authentication tokens of type TAuthenticationToken
.
Namespace: Cqrs.Authentication
Assembly: Cqrs.dll
Syntax
[ServiceContract(Namespace = "https://getcqrs.net/SingleSignOn/TokenHelper")]
public interface IAuthenticationTokenHelper<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of authentication token. |
Methods
GetAuthenticationToken()
Get the current TAuthenticationToken
for the current context/request.
Declaration
[OperationContract]
TAuthenticationToken GetAuthenticationToken()
Returns
Type | Description |
---|---|
TAuthenticationToken |
SetAuthenticationToken(TAuthenticationToken)
Set the provided token
for the current context/request.
Declaration
[OperationContract]
TAuthenticationToken SetAuthenticationToken(TAuthenticationToken token)
Parameters
Type | Name | Description |
---|---|---|
TAuthenticationToken | token |
Returns
Type | Description |
---|---|
TAuthenticationToken |