matrix_sdk::oidc::requests::account_management

Function build_account_management_url

Source
pub fn build_account_management_url(
    account_management_uri: Url,
    action: Option<AccountManagementActionFull>,
    id_token_hint: Option<String>,
) -> Result<Url, AccountManagementError>
Available on crate feature experimental-oidc only.
Expand description

Build the URL for accessing the account management capabilities.

§Arguments

  • account_management_uri - The URL to access the issuer’s account management capabilities.

  • action - The action that the user wishes to take.

  • id_token_hint - An ID Token that was previously issued to the client, used as a hint for which user is requesting to manage their account.

§Returns

A URL to be opened in a web browser where the end-user will be able to access the account management capabilities of the issuer.

§Errors

Returns an error if serializing the URL fails.