Show / Hide Table of Contents

Interface IAuthenticationService

Singleton application service contract for handing authentication.

Namespace: Kephas.Security.Authentication
Assembly: Kephas.Core.dll
Syntax
[SingletonAppServiceContract]
public interface IAuthenticationService

Methods

| Improve this Doc View Source

AuthenticateAsync(IAuthenticationContext, CancellationToken)

Authenticates the user asynchronously.

Declaration
Task<IIdentity> AuthenticateAsync(IAuthenticationContext authContext, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IAuthenticationContext authContext

Context for the authentication.

System.Threading.CancellationToken cancellationToken

Optional. The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<System.Security.Principal.IIdentity>

An asynchronous result that yields the identity.

| Improve this Doc View Source

GetIdentityAsync(Object, IContext, CancellationToken)

Gets asynchronously the identity for the provided token.

Declaration
Task<IIdentity> GetIdentityAsync(object token, IContext context = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Object token

The token.

IContext context

The requiring context (optional).

System.Threading.CancellationToken cancellationToken

The cancellation token (optional).

Returns
Type Description
System.Threading.Tasks.Task<System.Security.Principal.IIdentity>

An asynchronous result that yields the identity.

| Improve this Doc View Source

GetTokenAsync(IIdentity, IContext, CancellationToken)

Gets asynchronously a token for the provided identity.

Declaration
Task<object> GetTokenAsync(IIdentity identity, IContext context = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Security.Principal.IIdentity identity

The identity.

IContext context

The requiring context (optional).

System.Threading.CancellationToken cancellationToken

The cancellation token (optional).

Returns
Type Description
System.Threading.Tasks.Task<System.Object>

An asynchronous result that yields the token.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
AuthenticationServiceExtensions.Authenticate(IAuthenticationService, IAuthenticationContext)
AuthenticationServiceExtensions.GetIdentity(IAuthenticationService, Object, IContext)
AuthenticationServiceExtensions.GetToken(IAuthenticationService, IIdentity, IContext)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX