Package com.adobe.granite.auth.oauth
Interface AuthorizationCodeAcceptor
-
@ConsumerType public interface AuthorizationCodeAcceptor
Interface thatProvider
s can implement to indicate they can accept authorization code requests directly.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
acceptsCodeRequest(HttpServletRequest request, OAuthConfig config)
Return true if the request contains a valid authorization token that should be used to request an access token from the identity provider.
-
-
-
Method Detail
-
acceptsCodeRequest
boolean acceptsCodeRequest(HttpServletRequest request, OAuthConfig config)
Return true if the request contains a valid authorization token that should be used to request an access token from the identity provider. The first provider to respond with true will handle the request.- Parameters:
request
- The request object containing the information for the authentication.- Returns:
- true if accepted, false if not
-
-