-
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
82 fix sending out emails #83
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice, just going to test locally.
Should add the url file to .gitignore
so we don't commmit it
else: | ||
logger.info("No suitable token exists in cache. Let's initiate interactive login.") | ||
auth_code_flow = app.initiate_auth_code_flow(scopes=[self.settings.scope], login_hint=self.settings.username) | ||
final_url = click.prompt( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can change this to click.confirm
so you what the temrinal asks you to do makes more sense
src/rred_reports/reports/auth.py
Outdated
with cache_path.open("wb") as cache_file: | ||
cache_file.write(cache.serialize()) | ||
|
||
save_cache() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh interesting. I'm surprised this actually works saving it before we're authenticated. Would have thought you'd have to save the data to the cache file after we've done the manual 2FA flow?
04a276c
to
4cc88bb
Compare
Email sending with MFA in
auth.py
and updatedREADME