Skip to content
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

Authentication necessity check function based on cache #178

Open
alpineyahoo opened this issue Dec 7, 2024 · 0 comments
Open

Authentication necessity check function based on cache #178

alpineyahoo opened this issue Dec 7, 2024 · 0 comments

Comments

@alpineyahoo
Copy link

I would like to write a script in which oauth2l is used. In the script I'd like to write conditional codes depending on authentication necessity (I mean, whether it is necessary to open the consent page on a browser or not). Currently oauth2l doesn't provide such a function and if you want to know whether it is necessary you have to run:

oauth2l fetch --scope <scope_name> --cache /path/to/cache --credentials /path/to/credentials.json

and see whether this message comes up:

Go to the following link in your browser:

 https://accounts.google.com/o/oauth2/auth?......

This is inconvenient when embedding oauth2l in scripts. I would like oauth2l to provide a function which checks authentication necessity based on cache. Sadly you don't seem to be able to extract token from cache, so oauth2l test command doesn't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant