example_oidc_cli

Function use_auth_url

Source
pub(crate) async fn use_auth_url(
    url: &Url,
    state: &str,
    data_rx: Receiver<String>,
    signal_tx: Sender<()>,
) -> Result<AuthorizationCode>
Expand description

Open the authorization URL and wait for it to be complete.

Returns the code to obtain the access token.