Name: requests_gpgauthlib
Owner: Liip
Description: A GPGAuth Client in Python
Created: 2018-01-04 14:44:17.0
Updated: 2018-03-15 12:37:16.0
Pushed: 2018-03-15 12:37:14.0
Homepage: null
Size: 156
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
rt requests
requests_gpgauthlib import GPGAuthSession
requests_gpgauthlib.utils import create_gpg, get_workdir, import_user_private_key_from_file
ER_URL = 'https://demo.passbolt.com'
ER_FINGERPRINT = '6810A8F7728F4A7CE936F93BA27743FA0C9E83E0'
= create_gpg(get_workdir())
rt_user_private_key_from_file(gpg, '~/Downloads/passbolt_private.asc')
GPGAuthSession(
g=gpg,
rver_url=SERVER_URL,
th_uri='/auth/'
rt ga.server_fingerprint == SERVER_FINGERPRINT
uthenticate()
resources = ga.get(ga.get_absolute_uri('/resources.json'), params={'contain[secret]': 1}).json()['body']
t(all_resources)