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

82 fix sending out emails #83

Closed
wants to merge 7 commits into from
Closed

Conversation

katiebuntic
Copy link
Collaborator

Email sending with MFA in auth.py and updated README

@katiebuntic katiebuntic linked an issue Jun 27, 2024 that may be closed by this pull request
3 tasks
@katiebuntic katiebuntic self-assigned this Jun 27, 2024
Copy link
Collaborator

@stefpiatek stefpiatek left a 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(
Copy link
Collaborator

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

with cache_path.open("wb") as cache_file:
cache_file.write(cache.serialize())

save_cache()
Copy link
Collaborator

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?

@katiebuntic katiebuntic deleted the 82-fix-sending-out-emails branch June 27, 2024 12:41
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

Successfully merging this pull request may close these issues.

Fix sending out emails
2 participants