public class DeviceCodeVerificationResource extends ConsentRequiredResource
baseURLProviderFactory, xuiState
Constructor and Description |
---|
DeviceCodeVerificationResource(XUIState xuiState,
org.restlet.routing.Router router,
BaseURLProviderFactory baseURLProviderFactory,
OAuth2Representation representation,
TokenStore tokenStore,
OAuth2RequestFactory requestFactory,
AuthorizationService authorizationService,
OAuth2ProviderSettingsFactory providerSettingsFactory,
ExceptionHandler exceptionHandler,
ResourceOwnerSessionValidator resourceOwnerSessionValidator,
ClientRegistrationStore clientRegistrationStore,
OAuth2Utils oAuth2Utils,
CsrfProtection csrfProtection)
Constructs user code verification resource for OAuth2 Device Flow
|
Modifier and Type | Method and Description |
---|---|
protected void |
doCatch(Throwable throwable)
Handles any exception that is thrown when processing a OAuth2 authorization request.
|
org.restlet.representation.Representation |
userCodeForm()
Handles GET requests to the OAuth2 device/user endpoint, returning a form to allow the user to submit their
user code
|
org.restlet.representation.Representation |
verify(org.restlet.representation.Representation body)
Handles POST requests to the OAuth2 device/user endpoint.
|
getDataModel
getContext
abort, commit, delete, delete, describeVariants, doConditionalHandle, doError, doHandle, doHandle, doHandle, doNegotiatedHandle, get, get, getAnnotation, getAnnotation, getAnnotations, getAttribute, getDescription, getInfo, getInfo, getName, getOnSent, getPreferredVariant, getRole, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, patch, patch, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDescription, setDimensions, setExisting, setLocationRef, setLocationRef, setName, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
doError, doInit, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toBoolean, toByte, toDouble, toFloat, toInteger, toLong, toObject, toRepresentation, toRepresentation, toRepresentation, toShort, toString
@Inject public DeviceCodeVerificationResource(XUIState xuiState, @Named(value="OAuth2Router") org.restlet.routing.Router router, BaseURLProviderFactory baseURLProviderFactory, OAuth2Representation representation, TokenStore tokenStore, OAuth2RequestFactory requestFactory, AuthorizationService authorizationService, OAuth2ProviderSettingsFactory providerSettingsFactory, ExceptionHandler exceptionHandler, ResourceOwnerSessionValidator resourceOwnerSessionValidator, ClientRegistrationStore clientRegistrationStore, OAuth2Utils oAuth2Utils, CsrfProtection csrfProtection)
router
- The base routerexceptionHandler
- oAuth2Utils
- An OAuth2Utils instance.csrfProtection
- An instance of the CsrfProtection.@Post public org.restlet.representation.Representation verify(org.restlet.representation.Representation body) throws ServerException, NotFoundException, InvalidGrantException, OAuth2RestletException
@Get public org.restlet.representation.Representation userCodeForm() throws OAuth2RestletException, InvalidGrantException, NotFoundException, ServerException
OAuth2RestletException
InvalidGrantException
NotFoundException
ServerException
protected void doCatch(Throwable throwable)
doCatch
in class org.restlet.resource.ServerResource
throwable
- The throwable.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.