C# Class WsFederationServer.Services.AdditionalWindowsClaimsProvider

Inheritance: ICustomClaimsProvider
ファイルを表示 Open project: GeertHuls/SecuredApi

Public Methods

Method Description
TransformAsync ( IdentityServer.WindowsAuthentication.Services.CustomClaimsProviderContext context ) : System.Threading.Tasks.Task

Private Methods

Method Description
GetEmailFromActiveDirectoryAsync ( ClaimsIdentity outgoingSubject ) : Task

In a real implemention you look for an email in a mapping table or most likely in active directory. This hard-coded email however will trigger the idenity server to ask for additional information since the user is not known yet in the user store and he used windows authentication to authenticate.

Method Details

TransformAsync() public method

public TransformAsync ( IdentityServer.WindowsAuthentication.Services.CustomClaimsProviderContext context ) : System.Threading.Tasks.Task
context IdentityServer.WindowsAuthentication.Services.CustomClaimsProviderContext
return System.Threading.Tasks.Task