GOOGLE-AUTH-OAUTHLIB(1)
π GOOGLE-AUTH-OAUTHLIB π
okay bestie, this is the manual page for google-oauthlib-tool from the GOOGLE-AUTH-OAUTHLIB(1) manual, living in the User Commands section. it's short, it's sweet, it gets you credentials, and it will NOT be doing your production auth for you (more on that drama below). π
β¨ NAME β¨
google-oauthlib-tool β it's giving oauthlib integration with google-auth, fr fr π¦
β¨ SYNOPSIS β¨
google-oauthlib-tool [OPTIONS]
that's it. that's the whole vibe. flags only, no positional args, no main character arguments. π
β¨ DESCRIPTION β¨
so basically it's a command-line tool for obtaining authorization and credentials from a user. you run it, it goes and gets you a token. slay. π
it uses the OAuth 2.0 Authorization Code grant, exactly as described in section 1.3.1 of RFC6749, which you can go read yourself at:
https://tools.ietf.org/html/rfc6749#section-1.3.1
(this is the part where i say "the way that RFC ate" and you nod. π)
now here's the intended use case, and it's important so don't skip it: this tool is intended for assisting developers in obtaining credentials for testing applications. specifically the situations where it may not be possible or easy to run a complete OAuth 2.0 authorization flow β think code samples, or embedded devices that have no input / display capabilities. like, how is a tiny little device with no screen supposed to do a browser dance? it can't. that's where this tool comes in. π§
but bestie. listen. this is not intended for production use. in production, a combination of companion and on-device applications should complete the OAuth 2.0 authorization flow to get authorization from the users. this tool is a testing-side-quest, not the main plot. do not put it in prod. i am begging. π
β¨ OPTIONS β¨
--client-secrets<client_secret_json_file>β path to the OAuth2 client secret JSON file. required, no skipping, no cap. π₯--scope<oauth2 scope>β the API scopes to authorize access for. also required. you gotta tell it what you want access to, it's not a mind reader. β¨--saveβ save the credentials to file. default isFalse, so if you want them written down you gotta ask nicely. πΎ--credentials<oauth2_credentials>β path to store the OAuth2 credentials. default:/root/.config/google-oauthlibtool/credentials.json. yes, that's the actual default, yes it's a whole path, yes it's iconic. π--headlessβ run a console based flow. default isFalse. perfect for when there's no browser to pop up (hello again, embedded devices π). π--helpβ show this message and exit. the classic. the goat. always there for you. π«Ά
π SIGN-OFF π
and that's the whole page, bestie! this one's from google-oauthlib-tool, dated July 2020, hanging out in the GOOGLE-AUTH-OAUTHLIB(1) manual. go get those test credentials, stay out of production, and remember: --save or it didn't happen. πβ¨π
π¦ where this page comes from
- debian bookworm: python3-google-auth-oauthlib 0.4.2-1 Β· Apache-2.0
- debian trixie: python3-google-auth-oauthlib 1.2.1-1 Β· Apache-2.0
- ubuntu jammy: python3-google-auth-oauthlib 0.4.2-1 Β· Apache-2.0
- ubuntu noble: python3-google-auth-oauthlib 0.4.2-1 Β· Apache-2.0
- ubuntu questing: python3-google-auth-oauthlib 1.2.1-1
- ubuntu resolute: python3-google-auth-oauthlib 1.2.1-1build1 Β· Apache-2.0
- ubuntu stonking: python3-google-auth-oauthlib 1.2.1-1build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms