openidconnect-rs icon indicating copy to clipboard operation
openidconnect-rs copied to clipboard

How to use CoreResponseMode?

Open maxammann opened this issue 7 months ago • 0 comments

Implementing an OIDC flow right now. Is there a better way to set response mode than:

        let (authorize_url, csrf_state, nonce) = self
            .client
            .authorize_url(
                AuthenticationFlow::<CoreResponseType>::AuthorizationCode,
                CsrfToken::new_random,
                Nonce::new_random,
            )
            .add_extra_param("response_mode", CoreResponseMode::FormPost.as_ref())
            .url();

maxammann avatar Apr 29 '25 14:04 maxammann