pub struct OAuthClientConfig {
pub client_id: String,
pub redirect_uris: String,
pub jwks_uri: Option<String>,
pub signing_keys: Vec<KeyData>,
pub scope: Option<String>,
pub client_name: Option<String>,
pub client_uri: Option<String>,
pub logo_uri: Option<String>,
pub tos_uri: Option<String>,
pub policy_uri: Option<String>,
}
Expand description
OAuth client configuration for Axum handlers.
Contains the essential configuration needed for OAuth client operations.
Fields§
§client_id: String
OAuth client identifier
redirect_uris: String
Allowed OAuth redirect URIs
jwks_uri: Option<String>
JSON Web Key Set URI for public keys
signing_keys: Vec<KeyData>
Signing keys for JWT operations
scope: Option<String>
OAuth scope, defaults to “atproto transition:generic”
client_name: Option<String>
Optional human-readable client name
client_uri: Option<String>
Optional client website URI
logo_uri: Option<String>
Optional client logo URI
tos_uri: Option<String>
Optional terms of service URI
policy_uri: Option<String>
Optional privacy policy URI
Implementations§
Trait Implementations§
Source§impl Clone for OAuthClientConfig
impl Clone for OAuthClientConfig
Source§fn clone(&self) -> OAuthClientConfig
fn clone(&self) -> OAuthClientConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for OAuthClientConfig
impl Default for OAuthClientConfig
Source§fn default() -> OAuthClientConfig
fn default() -> OAuthClientConfig
Returns the “default value” for a type. Read more
Source§impl<S> FromRequestParts<S> for OAuthClientConfig
impl<S> FromRequestParts<S> for OAuthClientConfig
Source§async fn from_request_parts(
_parts: &mut Parts,
state: &S,
) -> Result<Self, Self::Rejection>
async fn from_request_parts( _parts: &mut Parts, state: &S, ) -> Result<Self, Self::Rejection>
Extracts OAuth client configuration from Axum application state.
Source§type Rejection = Infallible
type Rejection = Infallible
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Auto Trait Implementations§
impl Freeze for OAuthClientConfig
impl RefUnwindSafe for OAuthClientConfig
impl Send for OAuthClientConfig
impl Sync for OAuthClientConfig
impl Unpin for OAuthClientConfig
impl UnwindSafe for OAuthClientConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
Source§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Source§fn from_request(
req: Request<Body>,
state: &S,
) -> impl Future<Output = Result<T, <T as FromRequest<S, ViaParts>>::Rejection>>
fn from_request( req: Request<Body>, state: &S, ) -> impl Future<Output = Result<T, <T as FromRequest<S, ViaParts>>::Rejection>>
Perform the extraction.