public BrokerBase(string clientId, string clientSecret, string scope, IAuthorizationUriAcquirer authUriAcquirer) { ClientId = clientId; ClientSecret = clientSecret; Scope = scope; AuthUriAcquirer = authUriAcquirer; var storageKey = (clientId + clientSecret + scope).Sha1(); SecureCache = new SecureTokenCache(storageKey); }
public GithubBroker(string clientId, string clientSecret, string scope, IAuthorizationUriAcquirer authUriAcquirer) : base(clientId, clientSecret, scope, authUriAcquirer) { }
internal OpenIdConnectBroker(string authority, string clientId, string clientSecret, string scope, IAuthorizationUriAcquirer authUriAcquirer, DiscoveryPolicy discoveryPolicy) : base(clientId, clientSecret, scope, authUriAcquirer) { Authority = authority; var client = new DiscoveryClient(authority); if (discoveryPolicy != null) { client.Policy = discoveryPolicy; } Discovery = new DiscoveryCache(client); }
public OpenIdConnectBroker(string authority, string clientId, string clientSecret, string scope, IAuthorizationUriAcquirer authUriAcquirer) : this(authority, clientId, clientSecret, scope, authUriAcquirer, null) { }