-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add utility to read OAuth 2 token from file #318
Comments
The JSON response doesn't indicate a specific time, but rather a duration. We know from the time the token was received that we have approximately 3599 seconds remaining before the token is invalid. How we track that time is an implementation detail. One way that comes to mind is a field in a SQLite database table, but a simpler approach is likely to be a mod date/time on a written file. Read the metadata of an input JSON file and refuse to proceed further if the token is determined to be expired. |
- Add utility to obtain OAuth 2 token via Client Credentials flow - Add utility to read OAuth 2 token from file - README updates - add coverage for new tools - misc fixes for previous tooling - Add automatic retry functionality for OAuth2 token retrieval step used by list-emails CLI app and OAuth2-based monitoring plugin - Add winres config to xoauth2 tool (and to new "Fetcher" tools) refs GH-318 refs GH-319
- Add utility to obtain OAuth 2 token via Client Credentials flow - Add utility to read OAuth 2 token from file - README updates - add coverage for new tools - misc fixes for previous tooling - Add automatic retry functionality for OAuth2 token retrieval step used by list-emails CLI app and OAuth2-based monitoring plugin - Add winres config to xoauth2 tool (and to new "Fetcher" tools) refs GH-318 refs GH-319
- Add utility to obtain OAuth 2 token via Client Credentials flow - Add utility to read OAuth 2 token from file - README updates - add coverage for new tools - misc fixes for previous tooling - Add automatic retry functionality for OAuth2 token retrieval step used by list-emails CLI app and OAuth2-based monitoring plugin - Add winres config to xoauth2 tool (and to new "Fetcher" tools) refs GH-318 refs GH-319
- Add utility to obtain OAuth 2 token via Client Credentials flow - Add utility to read OAuth 2 token from file - README updates - add coverage for new tools - misc fixes for previous tooling - Add automatic retry functionality for OAuth2 token retrieval step used by list-emails CLI app and OAuth2-based monitoring plugin - Add winres config to xoauth2 tool (and to new "Fetcher" tools) refs GH-318 refs GH-319
- Add utility to obtain OAuth 2 token via Client Credentials flow - Add utility to read OAuth 2 token from file - README updates - add coverage for new tools - misc fixes for previous tooling - Add automatic retry functionality for OAuth2 token retrieval step used by list-emails CLI app and OAuth2-based monitoring plugin - Add winres config to xoauth2 tool (and to new "Fetcher" tools) refs GH-318 refs GH-319
- Add utility to obtain OAuth 2 token via Client Credentials flow - Add utility to read OAuth 2 token from file - README updates - add coverage for new tools - misc fixes for previous tooling - Add automatic retry functionality for OAuth2 token retrieval step used by list-emails CLI app and OAuth2-based monitoring plugin - Add winres config to xoauth2 tool (and to new "Fetcher" tools) refs GH-318 refs GH-319
- Add utility to obtain OAuth 2 token via Client Credentials flow - Add utility to read OAuth 2 token from file - README updates - add coverage for new tools - misc fixes for previous tooling - Add automatic retry functionality for OAuth2 token retrieval step used by list-emails CLI app and OAuth2-based monitoring plugin - Add winres config to xoauth2 tool (and to new "Fetcher" tools) refs GH-318 refs GH-319
- Add utility to obtain OAuth 2 token via Client Credentials flow - Add utility to read OAuth 2 token from file - README updates - add coverage for new tools - misc fixes for previous tooling - Add automatic retry functionality for OAuth2 token retrieval step used by list-emails CLI app and OAuth2-based monitoring plugin - Add winres config to xoauth2 tool (and to new "Fetcher" tools) refs GH-318 refs GH-319
- Add utility to obtain OAuth 2 token via Client Credentials flow - Add utility to read OAuth 2 token from file - README updates - add coverage for new tools - misc fixes for previous tooling - Add automatic retry functionality for OAuth2 token retrieval step used by list-emails CLI app and OAuth2-based monitoring plugin - Add winres config to xoauth2 tool (and to new "Fetcher" tools) refs GH-318 refs GH-319
- Add utility to obtain OAuth 2 token via Client Credentials flow - Add utility to read OAuth 2 token from file - README updates - add coverage for new tools - misc fixes for previous tooling - Add automatic retry functionality for OAuth2 token retrieval step used by list-emails CLI app and OAuth2-based monitoring plugin - Add winres config to xoauth2 tool (and to new "Fetcher" tools) refs GH-318 refs GH-319
Overview
Provide a small CLI tool that can read an OAuth 2 token from a specified file. The idea is that another tool would be called via cron periodically to obtain an initial token or replace an existing one and that this one would read that token and emit it via stdout.
The assumption is that the input file would be in JSON format containing all relevant fields from an OAuth 2 token.
As a potential later enhancement, the tool could add support for parsing a plain text file in order to perform cleanup (e.g., removing any stray single or double quotes).
Input JSON format
For reference, here is a curl command used to fetch a token:
and the "pretty printed" JSON response:
References
The text was updated successfully, but these errors were encountered: