Git Product home page Git Product logo

get-xoauth2-token's Introduction

get-xoauth2-token (gxt)

This tool gets an xoauth2 token and prints to stdin for a given login.

It's meant to be used with something like meli. (You'll want the use_oauth2 option and the server_password_command options.)

usage

❯ ./get-xoauth2-token \
  --client-secret-path '~/client.json'\
  --username "[email protected]"
You have not authenticated. You need to run this:

  ./get-xoauth2-token --client-secret-path '~/client.json' --username "[email protected]" --login


❯ ./get-xoauth2-token \
  --client-secret-path '~/client.json'\
  --username "[email protected]" \
  --login
Please direct your browser to https://accounts.google.com/o/oauth2/auth?scope=https://mail.google.com&access_type=offline&redirect_uri=http://127.0.0.1:41099&response_type=code&client_id=885945199677-vuo8qdimgva38orlljiosa8n6om0sksg.apps.googleusercontent.com and follow the instructions displayed there.
dXNlcj10ZXN0LmdjYWwuYXBpQGdtRedactedMFlwSE5rNlY4AQE=%

❯ ./get-xoauth2-token \
  --client-secret-path '~/client.json'\
  --username "[email protected]"
dXNlcj10ZXN0LmdjYWwuYXBpQGdtRedactedMFlwSE5rNlY4AQE=%

# now meli can run the command without issue
# and it will just use the refresh_token as needed

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.