Show / Hide Table of Contents

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 Source

OnBehalfOfMsGraphAuthenticationProvider(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 Source

AuthenticateRequestAsync(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.

  • View Source
In This Article
Back to top Generated by DocFX