How To Choose Google Gmail API Permissions/Scopes

I am trying to use Google's Gmail API to compose and send an email on the user's behalf. According to their documentation at https://developers.google.com/gmail/api/v1/reference/users/messages/send#auth , I would need an access token that was generated to allow the following permissions:
This request requires authorization with at least one of the following scopes:
Scope
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.compose
https://www.googleapis.com/auth/gmail.send
However, OneAll's control panel for setting the permissions you need for your app, does not have ANY of these as options for Google, nor in Wordpress' options. That seems to be the case for most of the connected services, except for Facebook, which has the gratuitous number of permission options, just as I am looking for in the case of Google.

Am I missing something, or is there really no way to have the user approve these permissions/scopes on social signup/link/login? If the latter is the case, then as much as I like OneAll, I will have to abandon it and find an alternative social login service which does allow me to choose permissions. Otherwise I am stuck with being unable to ever use the Gmail API, forever plagued with "Error 403: Insufficient Permissions" upon request.

Thank you for your assistance.

Best Answer

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    edited August 2015 Answer ✓
    Hi Jeffrey,

    we have now added the permissions ;)
    You can enable them in the Google setup your OneAll account.

    Regards,

Answers

  • Hi Jeffrey,

    Right, currently we do not support these options. We'll consider adding them to the profile, but it may not be available soon enough for your project.

    Regards.
  • edited August 2015
    All right then. If you do plan on adding those options, how long do you expect it to take before they are successfully implemented?

    Also, do you know of any workaround I can utilize to pull off what I am trying to do? As in, is there a way for me to modify the permissions being requested when a user tries to sign up with the social login, before it is displayed to them? Or a way to have the social login redirect to use a login box which I create, with the permissions I am asking for included? Or any other alternative?
  • Wow, I am impressed! That was actually quite quick! I really do appreciate this. I had been struggling to try to manually code a workaround implementation, and it wasn't going very well. Congrats, you've satisfied and retained a customer. Keep up the awesome service. :)
  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    Thank you!

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.