File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
gateway-ha/src/main/java/io/trino/gateway Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 3131import io .trino .gateway .ha .resource .LoginResource ;
3232import io .trino .gateway .ha .resource .PublicResource ;
3333import io .trino .gateway .ha .resource .TrinoResource ;
34+ import io .trino .gateway .ha .router .OAuth2GatewayCookieProvider ;
3435import io .trino .gateway .ha .security .AuthorizedExceptionMapper ;
3536import io .trino .gateway .proxyserver .ForProxy ;
3637import 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 );
Original file line number Diff line number Diff line change 1414package io .trino .gateway .ha .router ;
1515
1616import com .google .inject .AbstractModule ;
17+ import com .google .inject .Inject ;
1718import com .google .inject .Provides ;
1819import io .airlift .units .Duration ;
1920import 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 ();
You can’t perform that action at this time.
0 commit comments