@Configuration
public class OAuthConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
OAuthConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
OAuthAccessTokensLoader |
oAuthAccessTokensLoader(pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository,
pl.allegro.tech.hermes.domain.oauth.OAuthProviderRepository oAuthProviderRepository,
OAuthClient oAuthClient,
pl.allegro.tech.hermes.common.metric.HermesMetrics metrics) |
ConsumerAuthorizationHandler |
oAuthConsumerAuthorizationHandler(OAuthSubscriptionHandlerFactory handlerFactory,
pl.allegro.tech.hermes.common.config.ConfigFactory configFactory,
OAuthProvidersNotifyingCache oAuthProvidersCache) |
OAuthClient |
oAuthHttpClient(org.eclipse.jetty.client.HttpClient httpClient,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
OAuthProvidersNotifyingCache |
oAuthProvidersNotifyingCache(org.apache.curator.framework.CuratorFramework curator,
pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
OAuthAccessTokens |
oAuthSubscriptionAccessTokens(OAuthAccessTokensLoader tokenLoader,
pl.allegro.tech.hermes.common.config.ConfigFactory configFactory) |
OAuthSubscriptionHandlerFactory |
oAuthSubscriptionHandlerFactory(pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository,
OAuthAccessTokens accessTokens,
OAuthTokenRequestRateLimiterFactory rateLimiterLoader) |
OAuthTokenRequestRateLimiterFactory |
oAuthTokenRequestRateLimiterFactory(pl.allegro.tech.hermes.domain.oauth.OAuthProviderRepository oAuthProviderRepository,
pl.allegro.tech.hermes.common.config.ConfigFactory configFactory) |
@Bean public OAuthTokenRequestRateLimiterFactory oAuthTokenRequestRateLimiterFactory(pl.allegro.tech.hermes.domain.oauth.OAuthProviderRepository oAuthProviderRepository, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory)
@Bean public OAuthAccessTokens oAuthSubscriptionAccessTokens(OAuthAccessTokensLoader tokenLoader, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory)
@Bean(initMethod="start",
destroyMethod="stop")
public OAuthClient oAuthHttpClient(@Named(value="oauth-http-client")
org.eclipse.jetty.client.HttpClient httpClient,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
@Bean public OAuthSubscriptionHandlerFactory oAuthSubscriptionHandlerFactory(pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository, OAuthAccessTokens accessTokens, OAuthTokenRequestRateLimiterFactory rateLimiterLoader)
@Bean public OAuthAccessTokensLoader oAuthAccessTokensLoader(pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository subscriptionRepository, pl.allegro.tech.hermes.domain.oauth.OAuthProviderRepository oAuthProviderRepository, OAuthClient oAuthClient, pl.allegro.tech.hermes.common.metric.HermesMetrics metrics)
@Bean public OAuthProvidersNotifyingCache oAuthProvidersNotifyingCache(org.apache.curator.framework.CuratorFramework curator, pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths paths, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
@Bean public ConsumerAuthorizationHandler oAuthConsumerAuthorizationHandler(OAuthSubscriptionHandlerFactory handlerFactory, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory, OAuthProvidersNotifyingCache oAuthProvidersCache)