Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add session utils for authentication and authorization using OpenID Connect (OIDC) #67

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hackermd
Copy link
Collaborator

@hackermd hackermd commented May 3, 2022

This PR implements utilities to create authorized requests.Session objects using OpenID Connect (OIDC).

It introduces two public classes that are both derived from requests.Session:

  • ConfidentialClientSession for confidential clients using the OAuth 2.0 Client Credentials grant type
  • PublicClientSession for public clients using the OAuth 2.0 Authorization Code grant type with Proof Key for Code Exchange (PKCE) challenge

It further adds the utility function create_session_from_client_credentials() that facilitates the creation of instances of the above classes given corresponding client credentials (ConfidentialClientCredentials or PublicClientCredentials).

@hackermd hackermd changed the title Add session utils for OIDC auth Add session utils for authentication and authorization using OpenID Connect (OIDC) May 3, 2022
@hackermd hackermd added the enhancement New feature or request label Dec 8, 2022
@hackermd hackermd self-assigned this Dec 8, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant