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)[source]¶
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)[source]¶
- authenticate(username: str, password: str) TokenSuccessResponse | TokenErrorResponse [source]¶
Exchange a given username and password for access, refresh and id tokens.
- Returns:
The result of the exchange