Function oauth2_token

Source
pub async fn oauth2_token(
    configuration: &Configuration,
    grant_type: &str,
    code: Option<&str>,
    refresh_token: Option<&str>,
    redirect_uri: Option<&str>,
    client_id: Option<&str>,
) -> Result<Oauth2TokenResponse, Error<Oauth2TokenError>>
Expand description

The client makes a request to the token endpoint by sending the following parameters using the "application/x-www-form-urlencoded" HTTP request entity-body. > Do not implement a client for this endpoint yourself. Use a library. There are many libraries > available for any programming language. You can find a list of libraries here: https://oauth.net/code/ > > Do not the the Hydra SDK does not implement this endpoint properly. Use one of the libraries listed above!