Edit

Share via


MsalProvider.CreatePublicClientApplication Method

Definition

Create an instance of PublicClientApplication using the provided config and some default values.

protected Microsoft.Identity.Client.IPublicClientApplication CreatePublicClientApplication(string clientId, string tenantId, string redirectUri, bool listWindowsWorkAndSchoolAccounts);
member this.CreatePublicClientApplication : string * string * string * bool -> Microsoft.Identity.Client.IPublicClientApplication
Protected Function CreatePublicClientApplication (clientId As String, tenantId As String, redirectUri As String, listWindowsWorkAndSchoolAccounts As Boolean) As IPublicClientApplication

Parameters

clientId
String

Registered ClientId.

tenantId
String

An optional tenant id.

redirectUri
String

Redirect uri for auth response.

listWindowsWorkAndSchoolAccounts
Boolean

Determines if organizational accounts should be supported.

Returns

A new instance of PublicClientApplication.

Applies to