-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
requests_oauth2client
version: head- Python version: 3.12.8
- Operating System: macOS
Description
Hi again! The service I'm building an OAuth client for, Bluesky, uses a protected resource metadata endpoint. That RFC is still just a draft, but it came out of the OAuth working group, and afaik is pretty close to accepted. I'm handling the protected resource endpoint myself, with code below, but eventually it'd be nice if requests_oauth2client supported it natively!
PROTECTED_RESOURCE_PATH = '/.well-known/oauth-protected-resource'
RESOURCE_METADATA_PATH = '/.well-known/oauth-authorization-server'
...
resp = util.requests_get(urljoin(pds_url, PROTECTED_RESOURCE_PATH))
resp.raise_for_status()
auth_server = resp.json()['authorization_servers'][0]
client = OAuth2Client.from_discovery_endpoint(
urljoin(auth_server, RESOURCE_METADATA_PATH),
...
Metadata
Metadata
Assignees
Labels
No labels