GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.
https://github.com/GAM-team/got-your-back/wiki
Apache License 2.0
2.61k stars 206 forks source link

GYB text prompts do not match the UI of the referenced website #295

Closed wildeep closed 3 years ago

wildeep commented 3 years ago

The issue tracker is for reporting product deficiencies. How do I questions should be posted to the discussion forum at https://groups.google.com/group/got-your-back. When in doubt, start at the discussion forum and return here only when instructed to do so.

Please confirm the following:

Full steps to reproduce the issue:

  1. Install GYB. 2.Follow the prompts 3.The prompts do not match the UI at Google.

Expected outcome (what are you trying to do?): Expected to follow the written prompts in GYB when granting access and creating accounts.

Actual outcome (what errors or bad behavior do you see instead?): The prompts do not match the UI at Google's website, resulting in confusion.

data-ux commented 3 years ago

@wildeep Did you figure out a workaround to make GYB work with the changed Google UI?

wildeep commented 3 years ago

I tried to get as far as I could via context, but no, I never was able to get things set up. I ended up doing a Google Takeout for the affected account.

On Mon, Nov 23, 2020 at 7:33 AM Jan Wolski notifications@github.com wrote:

@wildeep https://github.com/wildeep Did you figure out a workaround to make GYB work with the changed Google UI?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jay0lee/got-your-back/issues/295#issuecomment-732134538, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGZ3TDHJY32XV2LEUBDS3LSRJJCBANCNFSM4T3YDOSQ .

--

Dennis Wurster

prosilire commented 3 years ago

@wildeep and @data-ux are right: the UI in Google has changed.

I'm not an expert, so caveat emptor but the following seems to have worked for me. Installation is complete!

EDIT: The following steps got me through installation, but the rest of the setup process is not working, specifically the steps to authorize GYB.

  1. Go to the link displayed in Terminal : https://console.developers.google.com/apis/credentials/consent/edit?createClient&newAppInternalUser=true&project=gyb-project-gs8-irn-8eh
  2. Name it GYB, and enter any required email addresses and go through the remaining four screens leaving everything else blank.
  3. Under "User type" note that the User Type is External... I clicked the "Make INTERNAL" button (based on the parameter in the URL above)
  4. In the APIs & Services menu at left, click Credentials
  5. Click + Create Credentials at top and select OAuth Client ID from the list.
  6. Choose "Desktop app". Enter a desired value for "Name". Click the blue "Create" button.
  7. Copy and paste your "client ID" value and "secret" value as prompted by the Install App in Terminal.
prosilire commented 3 years ago

Got it working! The credentials weren't created correctly by the install script. I went into the Google Developer console and deleted everything there, created a new project from scratch, following the instructions in the Wiki here: https://github.com/jay0lee/got-your-back/wiki#google-workspace-admins

NOTE: there are differences between the wiki documentation and the new interface, but they were close enough for me to figure it out.

WoutervdBrink commented 3 years ago

Thank you so much @prosilire !

I don't have time right now, but in case anyone would like to change the prompts: I found it at https://github.com/jay0lee/got-your-back/blob/master/gyb.py#L838.

vzaliva commented 3 years ago

I tried all kinds of instructions (wiki, this issue, etc.) and nothing works. Screen and prompts do not match which makes this project unusable.

pmcgaley commented 3 years ago

I got this working eventually using the instructions from @prosilire with one extra blip - "Make internal" wasn't available to me as I'm "not a G Suite user". This results in a 403 error page at one of the authorization steps. Solved by adding myself as a test user.

image

Craigp23 commented 3 years ago

Not working for me so far :/

Tried the steps suggested by @prosilire (thanks :) in

https://github.com/jay0lee/got-your-back/wiki#google-workspace-admins

but have only got to step 12 so far as login not allowed (I have a GSuite account).

Haven't found the scopes yet either in the Google Admin console. Has the UI changed since @pmcgaley posted his success ??

Thanks for any tips!

prosilire commented 3 years ago

Hey @Craigp23 are you an admin of your GSuite domain? I believe admin-level permissions are required based on the information on this page:

Note: Only users with access to the Admin APIs can access the Admin SDK Directory API, therefore your service account needs to impersonate one of those users to access the Admin SDK Directory API. Additionally, the user must have logged in at least once and accepted the Google Workspace Terms of Service.

Craigp23 commented 3 years ago

Hey @Craigp23 are you an admin of your GSuite domain? I believe admin-level permissions are required based on the information on this page:

Note: Only users with access to the Admin APIs can access the Admin SDK Directory API, therefore your service account needs to impersonate one of those users to access the Admin SDK Directory API. Additionally, the user must have logged in at least once and accepted the Google Workspace Terms of Service.

Ah, I don't have Admin permissions. I'll try the Google Takeout route. Thanks again!

ilium007 commented 3 years ago

Same issue - unusable for GMail (non-GSuite) users

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.