public class UserInfoRequestHandler extends Object
In an implementation of userinfo endpoint, call one of handle()
method variants and use the response as the response from the endpoint
to the client application. handle()
method calls Authlete's
/api/auth/userinfo
API and /api/auth/userinfo/issue
API.
Modifier and Type | Class and Description |
---|---|
static class |
UserInfoRequestHandler.Params
Parameters passed to the
handle(Params)
method. |
Constructor and Description |
---|
UserInfoRequestHandler(com.authlete.common.api.AuthleteApi api,
UserInfoRequestHandlerSpi spi)
Constructor with an implementation of
AuthleteApi interface
and an implementation of UserInfoRequestHandlerSpi interface. |
Modifier and Type | Method and Description |
---|---|
protected com.authlete.jaxrs.AuthleteApiCaller |
getApiCaller() |
javax.ws.rs.core.Response |
handle(String accessToken)
Handle a userinfo request to a UserInfo Endpoint defined in OpenID Connect
Core 1.0.
|
javax.ws.rs.core.Response |
handle(UserInfoRequestHandler.Params params)
Handle a userinfo request.
|
protected javax.ws.rs.InternalServerErrorException |
unexpected(String message,
Throwable cause) |
public UserInfoRequestHandler(com.authlete.common.api.AuthleteApi api, UserInfoRequestHandlerSpi spi)
AuthleteApi
interface
and an implementation of UserInfoRequestHandlerSpi
interface.api
- Implementation of AuthleteApi
interface.spi
- Implementation of UserInfoRequestHandlerSpi
interface.public javax.ws.rs.core.Response handle(String accessToken) throws javax.ws.rs.WebApplicationException
accessToken
- An access token.javax.ws.rs.WebApplicationException
- An error occurred.public javax.ws.rs.core.Response handle(UserInfoRequestHandler.Params params) throws javax.ws.rs.WebApplicationException
params
- Parameters needed to handle the userinfo request.javax.ws.rs.WebApplicationException
- An error occurred.protected com.authlete.jaxrs.AuthleteApiCaller getApiCaller()
Copyright © 2023. All rights reserved.