Skip to content

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
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant