Closed sserrata closed 6 years ago
Update
revoke_access_token
and revoke_refresh_token
. _resolve_credential
method which looks for credential in 1) ENVIRON, 2) Credentials file.region
, redirect_uri
and auth_base_url
variables/attributes.get_authorization_url
for generating authorization URL and returning state.auto_refresh
and automatic application of access_token
to Authorization: Bearer
header.Currently evaluating effectiveness of this design pattern and will submit a PR when ready.
For those brave souls looking to preview: https://github.com/sserrata/pancloud/tree/feature-credentials
Description
~/.config/pancloud
and as environment variablesImplementation Plan
credentials
module that supports construction ofCredentials
objectproperty
methods for retrievingaccess_token
,client_id
,client_secret
, andrefresh_token
._fetch_credential
,get_credentials
,remove_profile
,refresh
,write_credentials
.~/.config/pancloud
directory.