Struct tame_oidc::provider::Provider[][src]

pub struct Provider {
    pub issuer: String,
    pub authorization_endpoint: Uri,
    pub token_endpoint: Uri,
    pub jwks_uri: Uri,
    pub scopes_supported: Vec<String>,
    pub response_types_supported: Vec<String>,
    pub claims_supported: Vec<String>,
    pub grant_types_supported: Vec<String>,
}

Fields

issuer: Stringauthorization_endpoint: Uritoken_endpoint: Urijwks_uri: Uriscopes_supported: Vec<String>response_types_supported: Vec<String>claims_supported: Vec<String>grant_types_supported: Vec<String>

Implementations

impl Provider[src]

pub fn from_response<S>(response: Response<S>) -> Result<Self, Error> where
    S: AsRef<[u8]>, 
[src]

pub fn exchange_token_request<RedirectUri>(
    &self,
    redirect_uri: RedirectUri,
    client_id: &str,
    auth_code: &str,
    client_secret: Option<&str>,
    code_verifier: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError> where
    RedirectUri: TryInto<Uri>, 
[src]

pub fn refresh_token_request(
    &self,
    client_id: &str,
    client_secret: &str,
    refresh_token: &str
) -> Result<Request<Vec<u8>>, RequestError>
[src]

pub fn jwks_request(&self) -> Result<Request<&'static str>, RequestError>[src]

Trait Implementations

impl Debug for Provider[src]

impl<'de> Deserialize<'de> for Provider[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.