simple_openid_connect.flows.direct_access_grant.client#
Classes
|
A client that implements Direct Access Grant (or Resource Owner Password Credentials Grant) functionality. |
- class simple_openid_connect.flows.direct_access_grant.client.DirectAccessGrantClient(base_client: OpenidClient)#
A client that implements Direct Access Grant (or Resource Owner Password Credentials Grant) functionality.
It is exposed via
OpenidClient.authorization_code_flow
.- __init__(base_client: OpenidClient)#
- authenticate(username: str, password: str) TokenSuccessResponse | TokenErrorResponse #
Exchange a given username and password for access, refresh and id tokens.
- Returns:
The result of the exchange