Skip to content

Dev sync ago - #5

Open
vespinoza0 wants to merge 13 commits into
masterfrom
dev_sync_ago
Open

Dev sync ago#5
vespinoza0 wants to merge 13 commits into
masterfrom
dev_sync_ago

Conversation

@vespinoza0

Copy link
Copy Markdown
Contributor

Get credentials from keeper using citygeo_secrets

Comment thread 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
Copy Markdown
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.

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

Copy link
Copy Markdown
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.

@floptical
floptical force-pushed the master branch 2 times, most recently from 8f1a34b to 219f642 Compare February 26, 2025 20:30
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