Package io.trino.server.security.oauth2
Class OAuth2CallbackResource
- java.lang.Object
-
- io.trino.server.security.oauth2.OAuth2CallbackResource
-
@Path("/oauth2/callback") public class OAuth2CallbackResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCALLBACK_ENDPOINT
-
Constructor Summary
Constructors Constructor Description OAuth2CallbackResource(OAuth2Service service, Optional<OAuth2TokenExchange> tokenExchange, Optional<OAuth2WebUiInstalled> webUiOAuthEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsecallback(String state, String code, String error, String errorDescription, String errorUri, javax.ws.rs.core.Cookie nonce, javax.ws.rs.core.UriInfo uriInfo)
-
-
-
Field Detail
-
CALLBACK_ENDPOINT
public static final String CALLBACK_ENDPOINT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OAuth2CallbackResource
@Inject public OAuth2CallbackResource(OAuth2Service service, Optional<OAuth2TokenExchange> tokenExchange, Optional<OAuth2WebUiInstalled> webUiOAuthEnabled)
-
-
Method Detail
-
callback
@ResourceSecurity(PUBLIC) @GET @Produces("text/html") public javax.ws.rs.core.Response callback(@QueryParam("state") String state, @QueryParam("code") String code, @QueryParam("error") String error, @QueryParam("error_description") String errorDescription, @QueryParam("error_uri") String errorUri, @CookieParam("__Secure-Trino-Nonce") javax.ws.rs.core.Cookie nonce, @Context javax.ws.rs.core.UriInfo uriInfo)
-
-