liip/requests_gpgauthlib

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

requests_gpgauthlib - A requests GPGAuth authentication library

Build Status

Example usage
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)

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.