@Deprecated public class AuthorizationServerResource extends AuthorizationBaseServerResource
{ @code public Restlet createInboundRoot(){ ... ChallengeAuthenticator au = new ChallengeAuthenticator(getContext(), ChallengeScheme.HTTP_BASIC, "OAuth Test Server"); au.setVerifier(new MyVerifier()); au.setNext(AuthorizationServerResource.class); root.attach("/authorize", au); ... }
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAMETER_SUPPORT_POST
Deprecated.
The authorization server MUST support the use of the HTTP "GET" method [RFC2616] for the authorization endpoint
and MAY support the use of the "POST" method as well. (3.1.
|
clients, PARAMETER_DEFAULT_SCOPE, tokens
ACCESS_TOKEN, CLIENT_ID, CLIENT_SECRET, CODE, ERROR, ERROR_DESC, ERROR_URI, EXPIRES_IN, GRANT_TYPE, PASSWORD, REDIR_URI, REFRESH_TOKEN, RESPONSE_TYPE, SCOPE, STATE, TOKEN_TYPE, TOKEN_TYPE_BEARER, TOKEN_TYPE_MAC, USERNAME
Constructor and Description |
---|
AuthorizationServerResource()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Representation |
doPostAuthorization(org.restlet.ext.oauth.internal.AuthSession session,
org.restlet.ext.oauth.internal.Client client)
Deprecated.
Handles the authorization request.
|
protected org.restlet.ext.oauth.internal.RedirectionURI |
getRedirectionURI(Form parameters,
org.restlet.ext.oauth.internal.Client client)
Deprecated.
Get request parameter "redirect_uri".
|
protected ResponseType[] |
getResponseType(Form parameters)
Deprecated.
Returns the value of the request parameter "response_type".
|
Representation |
requestAuthorization()
Deprecated.
|
Representation |
requestAuthorization(Form params)
Deprecated.
Checks that all incoming requests have a type parameter.
|
Representation |
requestAuthorization(Representation input)
Deprecated.
|
doCatch, getAuthSession, getErrorPage, resetAuthSession, sendError, setupAuthSession, ungetAuthSession
addCacheDirective, doInit, getClient, getScope, getState, responseErrorRepresentation
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, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, 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
public static final java.lang.String PARAMETER_SUPPORT_POST
protected Representation doPostAuthorization(org.restlet.ext.oauth.internal.AuthSession session, org.restlet.ext.oauth.internal.Client client)
session
- The OAuth session.client
- The OAuth client.Representation
.protected org.restlet.ext.oauth.internal.RedirectionURI getRedirectionURI(Form parameters, org.restlet.ext.oauth.internal.Client client) throws OAuthException
parameters
- client
- The OAuth client.OAuthException
protected ResponseType[] getResponseType(Form parameters) throws OAuthException
parameters
- OAuthException
@Get(value="html") public Representation requestAuthorization() throws OAuthException
OAuthException
public Representation requestAuthorization(Form params) throws OAuthException
OAuthException
@Post(value="html") public Representation requestAuthorization(Representation input) throws OAuthException
OAuthException
Copyright © 2005-2024 Restlet.