The requirement is to process the token issue request at the Key Manager
before actually processing the request.

Following two methods will be introduced to the
org.wso2.carbon.identity.oauth2.OAuth2ServiceListener interface - and these
will be invoked from the org.wso2.carbon.identity.oauth2.OAuth2Service.

public void preIssue(OAuth2AccessTokenReqDTO tokenReqDTO)
throwsInvalidOAuthClientException,IdentityException;

public void postIssue(OAuth2AccessTokenRespDTO
tokenRespDTO)throwsInvalidOAuthClientException, IdentityException;

Also - we need to introduce another interface with following two methods -
which will be invoked by
org.wso2.carbon.apimgt.keymgt.service.APIKeyValidationService.

public Properties preValidate(String context, String version, String
accessToken, String requiredAuthenticationLevel, String clientDomain)
throwsAPIKeyMgtException,APIManagementException;

Properties returned above will be added to returned JWT.

public void postValidate(APIKeyValidationInfoDTO keyValidationInfo)
throwsAPIKeyMgtException,APIManagementException;

Thanks & Regards,
Prabath

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://RampartFAQ.com
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to