During the DEPR of EdxApiRestClient, some cases were replaced with plain requests object code, rather than using the updated OAuth client, using the user's JWT for service-to-service calls.
TODO: Find an example link of this change from the DEPR work.
The original intention of the new client was intentionally not to add this functionality to the new client, because it was thought that the client credentials token should be used instead of the user's JWT.
- We should have an ADR that clarifies when and if using the user's JWT is appropriate.
- We might potentially enhance the existing client if we wish to allow for other ways of using it.
- Note: The new client also provides shared observability code, but is lost when using the
requests code directly without a client.
- The Authentication OEP should also link to this ADR.
During the DEPR of EdxApiRestClient, some cases were replaced with plain
requestsobject code, rather than using the updated OAuth client, using the user's JWT for service-to-service calls.TODO: Find an example link of this change from the DEPR work.
The original intention of the new client was intentionally not to add this functionality to the new client, because it was thought that the client credentials token should be used instead of the user's JWT.
requestscode directly without a client.