Skip to main content

OAuth2Spec

Trait OAuth2Spec 

Source
pub trait OAuth2Spec:
    Send
    + Sync
    + 'static {
    const TOKEN_URL: &'static str;
    const SCOPES: &'static [(&'static str, &'static str)];
    const SCHEME: &'static str;
}
Expand description

Describes one OAuth2 password-flow scheme; implement on a marker type.

Required Associated Constants§

Source

const TOKEN_URL: &'static str

URL of the token endpoint (usually the route taking OAuth2PasswordRequestForm).

Source

const SCOPES: &'static [(&'static str, &'static str)]

(scope, description) pairs the API understands.

Source

const SCHEME: &'static str

Name under components.securitySchemes.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§