+architecture ---------- Forwarded message ---------- From: Hariprasath Thanarajah <[email protected]> Date: Sun, Apr 17, 2016 at 8:51 AM Subject: Using service account authentication to get accesstoken in esb connectors To: Malaka Silva <[email protected]> Cc: Kathees Rajendram <[email protected]>, Chanaka Fernando <[email protected]>, Kesavan Yogarajah <[email protected]>
Hi All, We usually create getAccessTokenFromCode, getAccessTokenFromRefreshToken and init to get accesstoken and authentication flow for ESB connectors. But in most of the API's, those all have the facility to get the accessToken using the JWT(Json Web Token). We have already developed the getAccessTokenFromServiceAccout for Google BigQuery. We can create this method for all Google API's since those all API's have the facility to get the AccessToken from the Service Account. I think we can create this method for other API's as well. If we create this method(/flow) then we don't need to create several flow for one API. You can find more on this in below links in [1], [1], https://developers.google.com/identity/protocols/OAuth2ServiceAccount, <https://developers.google.com/identity/protocols/OAuth2ServiceAccount> https://github.com/wso2-extensions/esb-connector-bigquery/blob/master/src/main/resources/bigquery-config/getAccessTokenFromServiceAccount.xml, <https://github.com/wso2-extensions/esb-connector-bigquery/blob/master/src/main/resources/bigquery-config/getAccessTokenFromServiceAccount.xml> https://github.com/wso2-extensions/esb-connector-bigquery/tree/master/src/main/java/org/wso2/carbon/connector, <https://github.com/wso2-extensions/esb-connector-bigquery/tree/master/src/main/java/org/wso2/carbon/connector> https://help.salesforce.com/HTViewHelpDoc?id=remoteaccess_oauth_jwt_flow.htm&language=en_US -- *Thank you and Regards**Hariprasath Thanarajah* Associate Software Engineer | WSO2 E: [email protected] M: +94752806528, 0777216903 -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> https://store.wso2.com/store/ Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
