Skip to main content

OAuthFormClient

Trait OAuthFormClient 

Source
pub trait OAuthFormClient {
    // Required method
    fn post_form(
        &self,
        url: &str,
        form: &[(&str, &str)],
    ) -> Result<(u16, String)>;

    // Provided methods
    fn chatgpt_jwks(&self, issuer: &str) -> Result<ChatgptKeys> { ... }
    fn revocation_endpoint(
        &self,
        params: &OAuthProviderParams<'_>,
        issuer: &str,
    ) -> Result<String> { ... }
}

Required Methods§

Source

fn post_form(&self, url: &str, form: &[(&str, &str)]) -> Result<(u16, String)>

Provided Methods§

Source

fn chatgpt_jwks(&self, issuer: &str) -> Result<ChatgptKeys>

Source

fn revocation_endpoint( &self, params: &OAuthProviderParams<'_>, issuer: &str, ) -> Result<String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§