[][src]Function open_api_hydra::apis::admin_api::create_o_auth2_client

pub async fn create_o_auth2_client<'_>(
    configuration: &'_ Configuration,
    body: OAuth2Client
) -> Result<OAuth2Client, Error<CreateOAuth2ClientError>>

Create a new OAuth 2.0 client If you pass client_secret the secret will be used, otherwise a random secret will be generated. The secret will be returned in the response and you will not be able to retrieve it later on. Write the secret down and keep it somwhere safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. To manage ORY Hydra, you will need an OAuth 2.0 Client as well. Make sure that this endpoint is well protected and only callable by first-party components.