@Path(value="/authorize") public class AuthorizationCodeGrantService extends RedirectionBasedGrantService
LOG
Constructor and Description |
---|
AuthorizationCodeGrantService() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canRedirectUriBeEmpty(Client c) |
protected boolean |
canSupportPublicClient(Client c) |
protected OAuthAuthorizationData |
createAuthorizationData(Client client,
javax.ws.rs.core.MultivaluedMap<String,String> params,
String redirectUri,
UserSubject subject,
List<OAuthPermission> perms,
boolean preAuthorizedTokenAvailable)
Create the authorization challenge data
|
protected javax.ws.rs.core.Response |
createErrorResponse(String state,
String redirectUri,
String error) |
protected javax.ws.rs.core.Response |
createGrant(OAuthRedirectionState state,
Client client,
List<String> requestedScope,
List<String> approvedScope,
UserSubject userSubject,
ServerAccessToken preauthorizedToken) |
protected javax.ws.rs.core.Response |
deliverOOBResponse(OOBAuthorizationResponse response) |
protected javax.ws.rs.core.UriBuilder |
getRedirectUriBuilder(String state,
String redirectUri) |
protected String |
processCodeGrant(Client client,
String code,
UserSubject endUser) |
protected OAuthRedirectionState |
recreateRedirectionStateFromSession(UserSubject subject,
javax.ws.rs.core.MultivaluedMap<String,String> params,
String sessionToken) |
void |
setCanSupportEmptyRedirectForPrivateClients(boolean canSupportEmptyRedirectForPrivateClients) |
void |
setCanSupportPublicClients(boolean support) |
void |
setCodeRequestFilter(AuthorizationCodeRequestFilter codeRequestFilter) |
void |
setCodeResponseFilter(AuthorizationCodeResponseFilter filter) |
protected javax.ws.rs.core.Response |
startAuthorization(javax.ws.rs.core.MultivaluedMap<String,String> params,
UserSubject userSubject,
Client client) |
authorize, authorizeDecision, authorizeDecisionForm, completeAuthorization, createErrorResponse, createUserSubject, getAndValidateSecurityContext, getClient, getClient, getSupportedGrantType, personalizeData, setMatchRedirectUriWithApplicationUri, setMaxDefaultSessionInterval, setPartialMatchScopeValidation, setResourceOwnerNameProvider, setSessionAuthenticityTokenProvider, setSubjectCreator, setUseRegisteredRedirectUriIfPossible, startAuthorization, validateRedirectUri
checkTransportSecurity, getDataProvider, getMessageContext, getQueryParameters, getValidClient, getValidClient, isWriteOptionalParameters, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, reportInvalidRequestError, setBlockUnsecureRequests, setDataProvider, setMessageContext, setWriteOptionalParameters
protected OAuthAuthorizationData createAuthorizationData(Client client, javax.ws.rs.core.MultivaluedMap<String,String> params, String redirectUri, UserSubject subject, List<OAuthPermission> perms, boolean preAuthorizedTokenAvailable)
RedirectionBasedGrantService
createAuthorizationData
in class RedirectionBasedGrantService
protected OAuthRedirectionState recreateRedirectionStateFromSession(UserSubject subject, javax.ws.rs.core.MultivaluedMap<String,String> params, String sessionToken)
recreateRedirectionStateFromSession
in class RedirectionBasedGrantService
protected javax.ws.rs.core.Response startAuthorization(javax.ws.rs.core.MultivaluedMap<String,String> params, UserSubject userSubject, Client client)
startAuthorization
in class RedirectionBasedGrantService
protected javax.ws.rs.core.Response createGrant(OAuthRedirectionState state, Client client, List<String> requestedScope, List<String> approvedScope, UserSubject userSubject, ServerAccessToken preauthorizedToken)
createGrant
in class RedirectionBasedGrantService
protected String processCodeGrant(Client client, String code, UserSubject endUser)
protected javax.ws.rs.core.Response deliverOOBResponse(OOBAuthorizationResponse response)
protected javax.ws.rs.core.Response createErrorResponse(String state, String redirectUri, String error)
createErrorResponse
in class RedirectionBasedGrantService
protected javax.ws.rs.core.UriBuilder getRedirectUriBuilder(String state, String redirectUri)
protected boolean canSupportPublicClient(Client c)
canSupportPublicClient
in class RedirectionBasedGrantService
protected boolean canRedirectUriBeEmpty(Client c)
canRedirectUriBeEmpty
in class RedirectionBasedGrantService
public void setCanSupportPublicClients(boolean support)
public void setCodeResponseFilter(AuthorizationCodeResponseFilter filter)
public void setCodeRequestFilter(AuthorizationCodeRequestFilter codeRequestFilter)
public void setCanSupportEmptyRedirectForPrivateClients(boolean canSupportEmptyRedirectForPrivateClients)
Apache CXF