C# Class ThinkTecture.IdentityServer.Contrib.ActiveDirectory.Repositories.ActiveDirectoryProviderUserRepository

Inheritance: IUserRepository
ファイルを表示 Open project: thinktecture/Thinktecture.IdentityServer.v1.Contrib

Private Properties

Property Type Description
GetPrincipalContext System.DirectoryServices.AccountManagement.PrincipalContext

Public Methods

Method Description
ActiveDirectoryProviderUserRepository ( ) : System
GetClaims ( IClaimsPrincipal principal, Thinktecture.IdentityServer.TokenService.RequestDetails requestDetails ) : IEnumerable
GetRoles ( string userName, RoleTypes roleType ) : IEnumerable
GetSupportedClaimTypes ( ) : IEnumerable
ValidateUser ( X509Certificate2 clientCertificate, string &userName ) : bool
ValidateUser ( string userName, string password ) : bool

Private Methods

Method Description
GetPrincipalContext ( ) : System.DirectoryServices.AccountManagement.PrincipalContext

Method Details

ActiveDirectoryProviderUserRepository() public method

public ActiveDirectoryProviderUserRepository ( ) : System
return System

GetClaims() public method

public GetClaims ( IClaimsPrincipal principal, Thinktecture.IdentityServer.TokenService.RequestDetails requestDetails ) : IEnumerable
principal IClaimsPrincipal
requestDetails Thinktecture.IdentityServer.TokenService.RequestDetails
return IEnumerable

GetRoles() public method

public GetRoles ( string userName, RoleTypes roleType ) : IEnumerable
userName string
roleType RoleTypes
return IEnumerable

GetSupportedClaimTypes() public method

public GetSupportedClaimTypes ( ) : IEnumerable
return IEnumerable

ValidateUser() public method

public ValidateUser ( X509Certificate2 clientCertificate, string &userName ) : bool
clientCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
userName string
return bool

ValidateUser() public method

public ValidateUser ( string userName, string password ) : bool
userName string
password string
return bool