Interface ISyncAuthenticationService
Interface for a synchronous authentication service.
Namespace: Kephas.Security.Authentication
Assembly: Kephas.Core.dll
Syntax
public interface ISyncAuthenticationService
Methods
| Improve this Doc View SourceAuthenticate(IAuthenticationContext)
Authenticates the user.
Declaration
IIdentity Authenticate(IAuthenticationContext authContext)
Parameters
Type | Name | Description |
---|---|---|
IAuthenticationContext | authContext | Context for the authentication. |
Returns
Type | Description |
---|---|
System.Security.Principal.IIdentity | The identity. |
GetIdentity(Object, IContext)
Gets the identity for the provided token.
Declaration
IIdentity GetIdentity(object token, IContext context = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | token | The token. |
IContext | context | The requiring context (optional). |
Returns
Type | Description |
---|---|
System.Security.Principal.IIdentity | The identity. |
GetToken(IIdentity, IContext)
Gets a token for the provided identity.
Declaration
object GetToken(IIdentity identity, IContext context = null)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Principal.IIdentity | identity | The identity. |
IContext | context | The requiring context (optional). |
Returns
Type | Description |
---|---|
System.Object | The token. |