Skip to content

Commit 4a4db41

Browse files
committed
Add bindings
1 parent 947ba40 commit 4a4db41

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import io.trino.gateway.ha.resource.LoginResource;
3232
import io.trino.gateway.ha.resource.PublicResource;
3333
import io.trino.gateway.ha.resource.TrinoResource;
34+
import io.trino.gateway.ha.router.OAuth2GatewayCookieProvider;
3435
import io.trino.gateway.ha.security.AuthorizedExceptionMapper;
3536
import io.trino.gateway.proxyserver.ForProxy;
3637
import io.trino.gateway.proxyserver.ProxyRequestHandler;
@@ -121,6 +122,7 @@ public void configure(Binder binder)
121122
registerResources(binder);
122123
registerProxyResources(binder);
123124
jaxrsBinder(binder).bind(RoutingTargetHandler.class);
125+
jaxrsBinder(binder).bind(OAuth2GatewayCookieProvider.class);
124126
addManagedApps(configuration, binder);
125127
jaxrsBinder(binder).bind(AuthorizedExceptionMapper.class);
126128
binder.bind(ProxyHandlerStats.class).in(Scopes.SINGLETON);

gateway-ha/src/main/java/io/trino/gateway/ha/router/OAuth2GatewayCookieProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
package io.trino.gateway.ha.router;
1515

1616
import com.google.inject.AbstractModule;
17+
import com.google.inject.Inject;
1718
import com.google.inject.Provides;
1819
import io.airlift.units.Duration;
1920
import io.trino.gateway.ha.config.HaGatewayConfiguration;
@@ -26,6 +27,7 @@ public class OAuth2GatewayCookieProvider
2627
private final List<String> deletePaths;
2728
private final Duration ttl;
2829

30+
@Inject
2931
public OAuth2GatewayCookieProvider(HaGatewayConfiguration configuration)
3032
{
3133
this.deletePaths = configuration.getOauth2GatewayCookieConfiguration().getDeletePaths();

0 commit comments

Comments
 (0)