Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

HumanBrainProject/openid_http_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Client

This library provides an Http client for Pyxus with support of OpenID token authentication.

A basic authentication client is provided as well as an abstract class.

Abstract Auth Client

This class allows the user to implement its own client by defining the required methods.

Basic Auth Client

This client uses the token provided. Once the token expires no refresh is done.

OpenID Client

This client allows to either pass a refresh token in its constructor. This token will be refresh when needed. If no refresh token are provided, the client will search for a token in the refresh_token_file_path. If you do not have any refresh token you can use the exchange_code_for_token method that will save the refresh_token in the refresh_token_file_path provided.

About

The OpenId HTTP client manages the authentication of requests against token-protected API interfaces including the support of refresh token strategies.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published