public class OAuthSampleClientAuthenticator
extends org.wso2.carbon.identity.oauth2.client.authentication.AbstractOAuthClientAuthenticator
| Constructor and Description |
|---|
OAuthSampleClientAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticateClient(javax.servlet.http.HttpServletRequest httpServletRequest,
Map<String,List> bodyParams,
org.wso2.carbon.identity.oauth2.bean.OAuthClientAuthnContext oAuthClientAuthnContext)
Authenticates oauth client based on client_id and client_secret headers.
|
boolean |
canAuthenticate(javax.servlet.http.HttpServletRequest httpServletRequest,
Map<String,List> bodyParams,
org.wso2.carbon.identity.oauth2.bean.OAuthClientAuthnContext oAuthClientAuthnContext)
Returns whether this request can be authenticated by this client authenticator.
|
String |
getClientId(javax.servlet.http.HttpServletRequest httpServletRequest,
Map<String,List> bodyParams,
org.wso2.carbon.identity.oauth2.bean.OAuthClientAuthnContext oAuthClientAuthnContext)
Extracts client id from incoming request and sends out.
|
String |
getName()
Returns the name of this client authenticator.
|
int |
getPriority()
Returns the execution order of this sample authenticator.
|
getBodyParametersinit, isEnabledpublic boolean authenticateClient(javax.servlet.http.HttpServletRequest httpServletRequest,
Map<String,List> bodyParams,
org.wso2.carbon.identity.oauth2.bean.OAuthClientAuthnContext oAuthClientAuthnContext)
throws org.wso2.carbon.identity.oauth2.client.authentication.OAuthClientAuthnException
httpServletRequest - Incoming HttpServlet request.bodyParams - body content map.oAuthClientAuthnContext - org.wso2.carbon.identity.oauth2.client.authentication.OAuthClientAuthnExceptionpublic boolean canAuthenticate(javax.servlet.http.HttpServletRequest httpServletRequest,
Map<String,List> bodyParams,
org.wso2.carbon.identity.oauth2.bean.OAuthClientAuthnContext oAuthClientAuthnContext)
httpServletRequest - Incoming HttpServletRequest.bodyParams - Content of the body.oAuthClientAuthnContext - OAuth Client authentication context.public String getClientId(javax.servlet.http.HttpServletRequest httpServletRequest, Map<String,List> bodyParams, org.wso2.carbon.identity.oauth2.bean.OAuthClientAuthnContext oAuthClientAuthnContext) throws org.wso2.carbon.identity.oauth2.client.authentication.OAuthClientAuthnException
httpServletRequest - Incoming HttpServletRequest.bodyParams - Content of the request body.oAuthClientAuthnContext - OAuth client authentication contextorg.wso2.carbon.identity.oauth2.client.authentication.OAuthClientAuthnException - OAuthClientAuthenticationException.public int getPriority()
getPriority in interface org.wso2.carbon.identity.core.handler.IdentityHandlergetPriority in class org.wso2.carbon.identity.core.handler.AbstractIdentityHandlerpublic String getName()
getName in interface org.wso2.carbon.identity.core.handler.IdentityHandlergetName in class org.wso2.carbon.identity.core.handler.AbstractIdentityHandlerCopyright © 2025 WSO2. All rights reserved.