Code Monkey home page Code Monkey logo

Comments (9)

tomholub avatar tomholub commented on July 24, 2024

It looks like you will need

  • auth tokens (waiting for #1 )
  • base64url_encode which I'll surface from my Js library: see

from flowcrypt-android.

tomholub avatar tomholub commented on July 24, 2024

@DenBond7 Client ID
717284730244-oogj0hlh6ln1gc71qktpsc4rs4fgtlci.apps.googleusercontent.com

from flowcrypt-android.

DenBond7 avatar DenBond7 commented on July 24, 2024

Gmail scopes(for me)
https://developers.google.com/gmail/api/auth/scopes

from flowcrypt-android.

tomholub avatar tomholub commented on July 24, 2024

To be able to use IMAP without errors, I think you will have to use the last scope: https://mail.google.com/

Also, you can now extract account info from the IdToken this way:

IdToken id = js.api_auth_parse_id_token(googleSignInAccount.getIdToken());
System.out.println(id.getEmail());
System.out.println(id.getName());
System.out.println(id.getFamilyName());
System.out.println(id.getGivenName());
System.out.println(id.getLocale());
System.out.println(id.getPicture());
System.out.println(id.isEmailVerified());

from flowcrypt-android.

DenBond7 avatar DenBond7 commented on July 24, 2024

For me https://github.com/googlesamples/google-services/tree/master/android/signin/app/src/main/java/com/google/samples/quickstart/signin

from flowcrypt-android.

DenBond7 avatar DenBond7 commented on July 24, 2024

For me https://java.net/projects/javamail/pages/Android

from flowcrypt-android.

DenBond7 avatar DenBond7 commented on July 24, 2024

Available folders for Gmail IMAP.(https://developers.google.com/gmail/imap/imap-extensions)
a004 LIST "" "*"

  • LIST (\HasNoChildren) "/" "INBOX"
  • LIST (\Noselect \HasChildren) "/" "[Gmail]"
  • LIST (\HasNoChildren \All) "/" "[Gmail]/All Mail"
  • LIST (\HasNoChildren \Drafts) "/" "[Gmail]/Drafts"
  • LIST (\HasNoChildren \Important) "/" "[Gmail]/Important"
  • LIST (\HasNoChildren \Sent) "/" "[Gmail]/Sent Mail"
  • LIST (\HasNoChildren \Junk) "/" "[Gmail]/Spam"
  • LIST (\HasNoChildren \Flagged) "/" "[Gmail]/Starred"
  • LIST (\HasNoChildren \Trash) "/" "[Gmail]/Trash"
    a004 OK Success

from flowcrypt-android.

DenBond7 avatar DenBond7 commented on July 24, 2024

from flowcrypt-android.

tomholub avatar tomholub commented on July 24, 2024

from flowcrypt-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.