MicrosoftGraphExtensions.AddMicrosoftGraph Method

Definition

Overloads

AddMicrosoftGraph(MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, IConfigurationSection)

Add support to call Microsoft Graph. From a named option and a configuration section.

AddMicrosoftGraph(MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, Action<MicrosoftGraphOptions>)

Add support to call Microsoft Graph. From a named options and a configuration method.

AddMicrosoftGraph(MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, Func<IAuthenticationProvider,GraphServiceClient>, IEnumerable<String>)

Add support to call Microsoft Graph.

AddMicrosoftGraph(MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, String, String)

Add support to call Microsoft Graph. From a base Graph URL and a default scope.

AddMicrosoftGraph(MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, IConfigurationSection)

Add support to call Microsoft Graph. From a named option and a configuration section.

public static Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder AddMicrosoftGraph (this Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection configurationSection);
static member AddMicrosoftGraph : Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder
<Extension()>
Public Function AddMicrosoftGraph (builder As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, configurationSection As IConfigurationSection) As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder

Parameters

configurationSection
IConfigurationSection

Configuration section.

Returns

The builder to chain.

Applies to

AddMicrosoftGraph(MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, Action<MicrosoftGraphOptions>)

Add support to call Microsoft Graph. From a named options and a configuration method.

public static Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder AddMicrosoftGraph (this Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder builder, Action<Microsoft.Identity.Web.MicrosoftGraphOptions> configureMicrosoftGraphOptions);
static member AddMicrosoftGraph : Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder * Action<Microsoft.Identity.Web.MicrosoftGraphOptions> -> Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder
<Extension()>
Public Function AddMicrosoftGraph (builder As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, configureMicrosoftGraphOptions As Action(Of MicrosoftGraphOptions)) As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder

Parameters

configureMicrosoftGraphOptions
Action<MicrosoftGraphOptions>

Method to configure the options.

Returns

The builder to chain.

Applies to

AddMicrosoftGraph(MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, Func<IAuthenticationProvider,GraphServiceClient>, IEnumerable<String>)

Add support to call Microsoft Graph.

public static Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder AddMicrosoftGraph (this Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder builder, Func<Microsoft.Graph.IAuthenticationProvider,Microsoft.Graph.GraphServiceClient> graphServiceClientFactory, System.Collections.Generic.IEnumerable<string> initialScopes);
static member AddMicrosoftGraph : Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder * Func<Microsoft.Graph.IAuthenticationProvider, Microsoft.Graph.GraphServiceClient> * seq<string> -> Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder
<Extension()>
Public Function AddMicrosoftGraph (builder As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, graphServiceClientFactory As Func(Of IAuthenticationProvider, GraphServiceClient), initialScopes As IEnumerable(Of String)) As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder

Parameters

graphServiceClientFactory
Func<IAuthenticationProvider,Microsoft.Graph.GraphServiceClient>

Function to create a GraphServiceClient.

initialScopes
IEnumerable<String>

Initial scopes.

Returns

The builder to chain.

Applies to

AddMicrosoftGraph(MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, String, String)

Add support to call Microsoft Graph. From a base Graph URL and a default scope.

public static Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder AddMicrosoftGraph (this Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder builder, string graphBaseUrl = "https://graph.microsoft.com/v1.0", string defaultScopes = "user.read");
static member AddMicrosoftGraph : Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder * string * string -> Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder
<Extension()>
Public Function AddMicrosoftGraph (builder As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, Optional graphBaseUrl As String = "https://graph.microsoft.com/v1.0", Optional defaultScopes As String = "user.read") As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder

Parameters

graphBaseUrl
String

Named instance of option.

defaultScopes
String

Configuration section.

Returns

The builder to chain.

Applies to