MsalProvider.CreatePublicClientApplication Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.