Eppie-io / Eppie-CLI

Command line client for Eppie — an encrypted p2p email
https://eppie.io
Apache License 2.0
28 stars 3 forks source link

Oauth error when trying to add Gmail account #158

Closed mateusfccp closed 1 month ago

mateusfccp commented 2 months ago

Describe the bug When trying to add Gmail account, I get an Oauth error.

To Reproduce Steps to reproduce the behavior:

  1. Start the Eppie cli
  2. Open the vault
  3. Try to add an account with add-account -t Email
  4. When prompted to select the e-mail type, select 1) Gmail
  5. An authentication prompt will be open in the browser, but with an Oauth error

Expected behavior The account should be authenticated.

Screenshots

image

The screenshot has some parts in portuguese, which translates as follow:

image

The entire text is:

Detalhes da solicitação: redirect_uri=http%3A%2F%2F127.0.0.1%3A64112%2F

The part in portuguese in this second screenshot means "Request details:".

Desktop:

Additional details: The documentation linked in the error message is the following: https://developers.google.com/identity/protocols/oauth2/policies#secure-response-handling

ValeraFinebits commented 1 month ago

The bug with Google authentication is now fixed. With that said, to authorize Eppie at Gmail at the moment you need to create your own application credentials in Google Cloud Platform as described here. Then pass the created Client ID and Client Secret as arguments when launching Eppie-CLI — here is the sample command.