Ejemplo n.º 1
0
        public static IPersistentAccessToken CreateOidcClient(string authority, string clientName, string clientSecret,
                                                              string desiredScopes)
        {
            var tokenHolder = new CapWebTokenHolder(ConfigureClient(authority, clientName, clientSecret, desiredScopes));

            return(new PersistentAccessTokenHolder(RefreshTokenDatabaseFactory.Create(), tokenHolder));
        }
Ejemplo n.º 2
0
 public static IPersistentAccessToken CreateOauth2Client(string authority, string clientId, string clientSecret)
 => new PersistentAccessTokenHolder(RefreshTokenDatabaseFactory.Create(),
                                    new OAuthClientLogin(authority, clientId, clientSecret));