Skip to main content

HTTPX OAuth integration

This quickstart guide covers the essential steps to start integrating Pangea AuthN with HTTPX OAuth .

Create an OAuth client

Create a new OAuth client as described in OAuth Server with the following parameters:

  • Grant Types: Authorization Code
  • Response Types: Code, Token
  • Allowed Scopes: openid, profile, email
  • Default scopes: openid, profile, email

Note down the client ID (starts with "psa_") and client secret (starts with "pck_") for later.

Set up client

from httpx_oauth.oauth2 import OAuth2

client = OAuth2(
"psa_000000",
"pck_111111",
"https://pdn-222222.login.aws.us.pangea.cloud/v1beta/oauth/authorize",
"https://pdn-222222.login.aws.us.pangea.cloud/v1beta/oauth/token"
)

Was this article helpful?

Contact us