pub struct RegisteredClient {Show 15 fields
pub client_id: String,
pub redirect_uris: Vec<String>,
pub client_name: Option<String>,
pub client_uri: Option<String>,
pub logo_uri: Option<String>,
pub grant_types: Vec<String>,
pub response_types: Vec<String>,
pub token_endpoint_auth_method: Option<String>,
pub jwks: Option<Value>,
pub jwks_uri: Option<String>,
pub hyprstream_node_did: Option<String>,
pub scope: Option<String>,
pub dpop_bound_access_tokens: Option<bool>,
pub is_cimd: bool,
pub registered_at: Instant,
}Expand description
A dynamically registered OAuth client (RFC 7591) or Client ID Metadata Document client.
Field set tracks [draft-ietf-oauth-client-id-metadata-document-00] §4 (Client Metadata Document) and [RFC 7591] §2 (Client Metadata): only the fields hyprstream actually consumes are kept; unknown fields in the source document are dropped at parse time.
Fields§
§client_id: String§redirect_uris: Vec<String>§client_name: Option<String>§client_uri: Option<String>Homepage / informational URI. Shown on the consent screen.
logo_uri: Option<String>Logo URL. Shown on the consent screen.
grant_types: Vec<String>Grant types this client is permitted to use. Empty = AS default
(authorization_code + refresh_token).
response_types: Vec<String>Response types this client is permitted to request. Empty = code.
token_endpoint_auth_method: Option<String>Token endpoint client auth method. "none" = public client (PKCE
is mandatory). "private_key_jwt" requires a non-empty jwks /
jwks_uri.
jwks: Option<Value>Inlined JWKS (CIMD §4 / RFC 7591 §2). Mutually exclusive with
jwks_uri per RFC 7591. Used for private_key_jwt client auth and
future request-object signing.
jwks_uri: Option<String>JWKS endpoint URL — alternative to inline jwks.
hyprstream_node_did: Option<String>Optional host did:key supplied by a PDS attachment client. Validated
during registration and retained for PDS identity association.
scope: Option<String>Space-separated scope tokens the client declared at registration
(RFC 7591 / RFC 6749 §3.3). Requested scopes at PAR/authorize are
validated as a subset of this (#1113 rev2). None → treated as
“no client-side restriction” (the client declared no ceiling).
dpop_bound_access_tokens: Option<bool>atproto OAuth: confidential clients set dpop_bound_access_tokens: true in their metadata document. Parsed and retained here (#1146);
enforcement (rejecting confidential clients that omit it on the
atproto profile) is follow-up work.
is_cimd: boolTrue if this client was registered via Client ID Metadata Document (HTTPS URL client_id)
registered_at: InstantImplementations§
Source§impl RegisteredClient
impl RegisteredClient
Sourcepub fn declared_scopes(&self) -> Vec<String>
pub fn declared_scopes(&self) -> Vec<String>
The client’s declared scope tokens, parsed from Self::scope.
Empty when the client declared no scopes (no client-side restriction).
Trait Implementations§
Source§impl Clone for RegisteredClient
impl Clone for RegisteredClient
Source§fn clone(&self) -> RegisteredClient
fn clone(&self) -> RegisteredClient
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for RegisteredClient
impl RefUnwindSafe for RegisteredClient
impl Send for RegisteredClient
impl Sync for RegisteredClient
impl Unpin for RegisteredClient
impl UnsafeUnpin for RegisteredClient
impl UnwindSafe for RegisteredClient
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request