auth0 / auth0-python

Auth0 SDK for Python
https://auth0-python.readthedocs.io
MIT License
513 stars 165 forks source link

Client credentials flow: organisation parameter is ignored #620

Open alfechner opened 4 months ago

alfechner commented 4 months ago

Checklist

Description

The organization parameter of the client_credentials flow is ignored.

From the docstring:

organization (str, optional): Optional Organization name or ID. When included, the access token returned will include the org_id and org_name claims

However, if I pass the organization id it's ignored and neither org_id nor org_name shows up in the token.

I'm wondering if I need to assign the client app to an organization first but there is no way to do that nor did I find anything related in the docs.

Reproduction

  1. Generate a token using client_credentials flow and pass a valid org id via the organization parameter.
  2. Decrypt the token using e.g. jwt.io.
  3. The claims org_id nor org_name are missing

Additional context

No response

auth0-python version

4.7.1

Python version

3.12