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

Check for additional valid tokens, in case the primary bearer auth token is expired #102

Open
ddl-bjornr opened this issue Aug 5, 2021 · 0 comments

Comments

@ddl-bjornr
Copy link

For use cases like scheduled tasks, fallback to API Key since the default auth method may have become invalid/expired.

We currently suggest to use unsetenv, i.e:
os.unsetenv('DOMINO_TOKEN_FILE')
in the python code to avoid a potentially expired Bearer Auth token file, and fallback to API Key.

We should be able to test for the expired bearer auth and walk through the remaining authentication methods instead of trying to apply the expired auth - causing 401/403 errors.

This may have improved with domino.authenticate already, but we still have some users on the older version.

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