Skip to content

auth: support passing settings dict to GoogleAuth #203

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

Merged
merged 1 commit into from
Jul 17, 2022
Merged

auth: support passing settings dict to GoogleAuth #203

merged 1 commit into from
Jul 17, 2022

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Jul 17, 2022

This allows programmatic use without having to create a settings file
or barbarically modifying GoogleAuth.DEFAULT_SETTINGS.

This allows programmatic use without having to create a settings file
or barbarically modifying `GoogleAuth.DEFAULT_SETTINGS`.
@efiop
Copy link
Contributor Author

efiop commented Jul 17, 2022

image

pass

self.settings = settings or self.DEFAULT_SETTINGS
ValidateSettings(self.settings)
Copy link
Contributor Author

@efiop efiop Jul 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit unrelated (was need for this change though), but now default settings are getting validated as well (which is nice).

@efiop efiop merged commit 57a074c into master Jul 17, 2022
@efiop efiop deleted the auth branch July 17, 2022 21:00
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.

1 participant