Show / Hide Table of Contents

Class AuthenticationServiceExtensions

An authentication service extensions.

Inheritance
System.Object
AuthenticationServiceExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Security.Authentication
Assembly: Kephas.Core.dll
Syntax
public static class AuthenticationServiceExtensions

Methods

| Improve this Doc View Source

Authenticate(IAuthenticationService, IAuthenticationContext)

Authenticates the user.

Declaration
public static IIdentity Authenticate(this IAuthenticationService authenticationService, IAuthenticationContext authContext)
Parameters
Type Name Description
IAuthenticationService authenticationService

The authentication service to act on.

IAuthenticationContext authContext

Context for the authentication.

Returns
Type Description
System.Security.Principal.IIdentity

The identity.

| Improve this Doc View Source

GetIdentity(IAuthenticationService, Object, IContext)

Gets the identity for the provided token.

Declaration
public static IIdentity GetIdentity(this IAuthenticationService authenticationService, object token, IContext context = null)
Parameters
Type Name Description
IAuthenticationService authenticationService

The authentication service to act on.

System.Object token

The token.

IContext context

Optional. The requiring context.

Returns
Type Description
System.Security.Principal.IIdentity

The identity.

| Improve this Doc View Source

GetToken(IAuthenticationService, IIdentity, IContext)

Gets a token for the provided identity.

Declaration
public static object GetToken(this IAuthenticationService authenticationService, IIdentity identity, IContext context = null)
Parameters
Type Name Description
IAuthenticationService authenticationService

The authentication service to act on.

System.Security.Principal.IIdentity identity

The identity.

IContext context

Optional. The requiring context.

Returns
Type Description
System.Object

The token.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX