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

Dev sync ago #5

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Dev sync ago #5

wants to merge 13 commits into from

Conversation

vespinoza0
Copy link
Contributor

Get credentials from keeper using citygeo_secrets

sync-ago.py Outdated
username='maps.phl.data',
password=MAPS_PASSWORD,
ago_creds = citygeo_secrets.connect_with_secrets(connect_maps_ago, "maps.phl.data")
org = GIS(url=ago_creds.get('url'),
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be refactored into a connection function that is passed to citygeo_secrets in the connect_with_secrets method in order to leverage the packages' functionality of trying again with secrets from the keeper api if the first connection attempt fails using secrets from the mapped drive.

sync.py Outdated
sf = Salesforce(username=SF_USER, \
password=SF_PASSWORD, \
security_token=SF_TOKEN)
sf = Salesforce(username=salesforce_creds.get('login'), \
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above; this should leverage citygeo-secrets by using refactoring the Salesforce connection into a function that is passed to the connect_with_secrets method.

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.

3 participants