Class OnBehalfOfMsGraphAuthenticationProvider
AAD delegated authentication provider.
Inheritance
System.Object
OnBehalfOfMsGraphAuthenticationProvider
Namespace: Microsoft.GNS.Roster.Web
Assembly: Microsoft.GNS.Roster.Web.dll
Syntax
public class OnBehalfOfMsGraphAuthenticationProvider : IAuthenticationProvider
Constructors
View SourceOnBehalfOfMsGraphAuthenticationProvider(ITokenAcquisition, IOptions<MicrosoftGraphOptions>)
Initializes a new instance of the OnBehalfOfMsGraphAuthenticationProvider class.
Declaration
public OnBehalfOfMsGraphAuthenticationProvider(ITokenAcquisition tokenAcquisition, IOptions<MicrosoftGraphOptions> graphApiOptions)
Parameters
Type | Name | Description |
---|---|---|
ITokenAcquisition | tokenAcquisition | Interface to get a user token. |
IOptions<MicrosoftGraphOptions> | graphApiOptions | Graph API options. |
Methods
View SourceAuthenticateRequestAsync(HttpRequestMessage)
Handles authenticating a request.
Declaration
public async Task AuthenticateRequestAsync(HttpRequestMessage request)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestMessage | request | HTTP request message. |
Returns
Type | Description |
---|---|
Task | A task representing the work to authenticate a request. |