Esempio n. 1
0
 public ClientCredentialsTokenStrategy(ClientCredentialsConfig config)
 {
     clientCredentialsConfig = config;
 }
 public BearerTokenAuthenticationProviderBuilder UseClientCredentialsTokenStrategy(ClientCredentialsConfig clientCredentialsConfig)
 {
     factory = svc => new BearerTokenAuthenticationProvider(svc.GetService <ITokenStore>(), new ClientCredentialsTokenStrategy(clientCredentialsConfig),
                                                            tokenIdentifier);
     return(this);
 }