Share via


AuthorizationHeaderProviderOptions Class

Definition

Options passed-in to call downstream web APIs. To call Microsoft Graph, see rather MicrosoftGraphOptions in the Microsoft.Identity.Web.MicrosoftGraph assembly.

public class AuthorizationHeaderProviderOptions
type AuthorizationHeaderProviderOptions = class
Public Class AuthorizationHeaderProviderOptions
Inheritance
AuthorizationHeaderProviderOptions
Derived

Constructors

AuthorizationHeaderProviderOptions()

Default constructor.

AuthorizationHeaderProviderOptions(AuthorizationHeaderProviderOptions)

Copy constructor for AuthorizationHeaderProviderOptions

Properties

AcquireTokenOptions

Options related to token acquisition.

BaseUrl

Base URL for the called downstream web API. For instance "https://graph.microsoft.com/beta/".

CustomizeHttpRequestMessage

Provides an opportunity for the caller app to customize the HttpRequestMessage. For example, to customize the headers. This is called after the message was formed, including the Authorization header, and just before the message is sent.

HttpMethod

HTTP method used to call this downstream web API (by default Get).

ProtocolScheme

Name of the protocol scheme used to create the authorization header. By default: "Bearer".

RelativePath

Path relative to the BaseUrl (for instance "me").

RequestAppToken

Describes if the downstream API is called on behalf of the calling service itself (App token) or on behalf of a user processed by the service (user token). If true, the token is requested on behalf of the app. Otherwise, it on-behalf of the user.

Methods

Clone()

Clone the options (to be able to override them).

CloneInternal()

Clone the options (to be able to override them).

GetApiUrl()

Return the downstream web API URL.

Applies to