Function mas_oidc_client::requests::token::request_access_token   
source · pub async fn request_access_token(
    http_client: &Client,
    client_credentials: ClientCredentials,
    token_endpoint: &Url,
    request: AccessTokenRequest,
    now: DateTime<Utc>,
    rng: &mut impl Rng,
) -> Result<AccessTokenResponse, TokenRequestError>Expand description
Request an access token.
§Arguments
- 
http_client- The reqwest client to use for making HTTP requests. - 
client_credentials- The credentials obtained when registering the client. - 
token_endpoint- The URL of the issuer’s Token endpoint. - 
request- The request to make at the Token endpoint. - 
now- The current time. - 
rng- A random number generator. 
§Errors
Returns an error if the request fails or the response is invalid.