public static MsalAuthenticationProvider GetInstance(IPublicClientApplication clientApplication, string[] scopes, string username, SecureString password) { if (_singleton == null) { _singleton = new MsalAuthenticationProvider(clientApplication, scopes, username, password); } return(_singleton); }
public static MsalAuthenticationProvider GetInstance(IConfidentialClientApplication application, string[] scopes) { if (_singleton == null) { _singleton = new MsalAuthenticationProvider(application, scopes); } return(_singleton); }