public MicrosoftGraphAuthenticationProvider(IAppSettings settings, IAzureGraphService graphService) : base(settings, MsGraph.Realm, MsGraph.ProviderName, "ClientId", "ClientSecret") { // Default Scopes. Not sure if this is a bad idea @ticky74 Scopes = new[] { "User.Read", "offline_access", "openid", "profile" }; _graphService = graphService ?? new MicrosoftGraphService(); AppSettings = settings; }
public AzureAuthenticationProvider(IAppSettings settings, IAzureGraphService graphService) : base(settings, MsGraph.Realm, MsGraph.ProviderName, "ClientId", "ClientSecret") { Scopes = new[] { "https://graph.microsoft.com/User.Read", "offline_access", "openid", "profile" }; _graphService = graphService ?? new AzureGraphService(); AppSettings = settings; if (ServiceStackHost.Instance != null) { RegisterProviderService(ServiceStackHost.Instance); } }
public MicrosoftGraphAuthenticationProvider(IAzureGraphService graphService) : this(new AppSettings(), graphService) { }