MsalProvider Constructors
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.
Overloads
| MsalProvider(IPublicClientApplication, String[], Boolean) |
Initializes a new instance of the MsalProvider class using a configuration object. |
| MsalProvider(String, String[], String, Boolean, Boolean, String) |
Initializes a new instance of the MsalProvider class with default configuration values. |
MsalProvider(IPublicClientApplication, String[], Boolean)
- Source:
- MsalProvider.cs
Initializes a new instance of the MsalProvider class using a configuration object.
public MsalProvider(Microsoft.Identity.Client.IPublicClientApplication client, string[] scopes = default, bool autoSignIn = true);
new CommunityToolkit.Authentication.MsalProvider : Microsoft.Identity.Client.IPublicClientApplication * string[] * bool -> CommunityToolkit.Authentication.MsalProvider
Public Sub New (client As IPublicClientApplication, Optional scopes As String() = Nothing, Optional autoSignIn As Boolean = true)
Parameters
- client
- IPublicClientApplication
Registered ClientId in Azure Acitve Directory.
- scopes
- String[]
List of Scopes to initially request.
- autoSignIn
- Boolean
Determines whether the provider attempts to silently log in upon creation.
Applies to
MsalProvider(String, String[], String, Boolean, Boolean, String)
- Source:
- MsalProvider.cs
Initializes a new instance of the MsalProvider class with default configuration values.
public MsalProvider(string clientId, string[] scopes = default, string redirectUri = default, bool autoSignIn = true, bool listWindowsWorkAndSchoolAccounts = true, string tenantId = default);
new CommunityToolkit.Authentication.MsalProvider : string * string[] * string * bool * bool * string -> CommunityToolkit.Authentication.MsalProvider
Public Sub New (clientId As String, Optional scopes As String() = Nothing, Optional redirectUri As String = Nothing, Optional autoSignIn As Boolean = true, Optional listWindowsWorkAndSchoolAccounts As Boolean = true, Optional tenantId As String = Nothing)
Parameters
- clientId
- String
Registered client id in Azure Acitve Directory.
- scopes
- String[]
List of Scopes to initially request.
- redirectUri
- String
RedirectUri for auth response.
- autoSignIn
- Boolean
Determines whether the provider attempts to silently log in upon creation.
- listWindowsWorkAndSchoolAccounts
- Boolean
Determines if organizational accounts should be enabled/disabled.
- tenantId
- String
Registered tenant id in Azure Active Directory.