Hi Hariprasath, I have tested this and works for g suite user account. So you are correct , service account cannot use to access normal gmail account.
Thanks & Regards, H Iroshan On Wed, Jun 7, 2017 at 3:48 PM, Hariprasath Thanarajah <haripras...@wso2.com > wrote: > Hi Iroshan, > > At the moment the Gmail connector doesn't support the service account > authentication and from the official gmail api website[1] they have > mentioed that all requests to the Gmail API must be authorized by an > authenticated user. Regarding the response from[2] we can't use a service > account with a normal users gmail account. > > [1] - https://developers.google.com/gmail/api/auth/about-auth > > [2] - https://stackoverflow.com/questions/42784640/client-is- > unauthorized-to-retrieve-access-tokens-using-this-method-gmail-api-c-s > > > On Tue, May 30, 2017 at 11:01 AM, Rajjaz Mohammed <raj...@wso2.com> wrote: > >> Hi Iroshan, >> >> AFAIK current Gmail connector doesn't support for service account type. >> You can create a Jira[1] to track this feature. >> >> [1] https://wso2.org/jira/projects/ESBCONNECT/issues >> >> On Tue, May 30, 2017 at 9:41 AM, iroshan horathalge < >> testiros...@gmail.com> wrote: >> >>> Hi All, >>> >>> have a good day. >>> >>> I am trying to send gmail by ESB- CONNECTOR[1] with Oauth2. >>> >>> Does this support for service account type which doesn't have redirect >>> URL and client ID?. All the documentation I saw are based on Client ID and >>> does not set up as service account . Do you have any sample or >>> documentation on this. >>> >>> >>> [1]https://docs.wso2.com/display/ESBCONNECTORS/Gmail+Connector . >>> >>> Thanks & Regards, >>> Iroshan >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Thank you >> Best Regards >> >> *Rajjaz HM* >> Software Engineer >> Platform Extension Team >> WSO2 Inc. <http://wso2.com/> >> lean | enterprise | middleware >> Mobile | +94752833834 <+94%2075%20283%203834>|+94777226874 >> <+94%2077%20722%206874> >> Email | raj...@wso2.com >> LinkedIn <https://lk.linkedin.com/in/hmohammedrajjaz> | Blogger >> <http://rajjazhm.blogspot.com/> | WSO2 Profile >> <http://wso2.com/about/team/mohammer-rajjaz/> >> [image: https://wso2.com/signature] <https://wso2.com/signature> >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > > *Thank you and Regards,**Hariprasath Thanarajah* > Software Engineer | WSO2 > E: haripras...@wso2.com > M: +94 75 2806528 <+94%2075%20280%206528>, +94 77 7216903 > <+94%2077%20721%206903> > Blog: hariwso2.blogspot.com > > Skype : hariss636 > LinkedIn : https://www.linkedin.com/in/hariprasath-thanarajah-5234b660 > > WSO2, Inc. > lean . enterprise . middleware > > https://wso2.com/signature > http://wso2.com/about/team/hariprashath-thanarajah/ >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev