pub enum AuthServerValidationError {
IssuerMustMatchPds,
ResponseTypesSupportMustIncludeCode,
GrantTypesSupportMustIncludeAuthorizationCode,
GrantTypesSupportMustIncludeRefreshToken,
CodeChallengeMethodsSupportedMustIncludeS256,
TokenEndpointAuthMethodsSupportedMustIncludeNone,
TokenEndpointAuthMethodsSupportedMustIncludePrivateKeyJwt,
TokenEndpointAuthSigningAlgValuesMustIncludeES256,
ScopesSupportedMustIncludeAtProto,
ScopesSupportedMustIncludeTransitionGeneric,
DpopSigningAlgValuesSupportedMustIncludeES256,
RequiredServerFeaturesMustBeSupported,
}
Expand description
Represents errors that can occur during OAuth authorization server validation.
These errors occur when validating the configuration of an OAuth authorization server against the requirements specified by the AT Protocol.
Variants§
IssuerMustMatchPds
Error when the authorization server issuer doesn’t match the PDS.
This error occurs when the issuer URI in the OAuth authorization server metadata does not match the expected Personal Data Server (PDS) URI.
ResponseTypesSupportMustIncludeCode
Error when the ‘code’ response type is not supported.
This error occurs when the authorization server doesn’t support the ‘code’ response type, which is required for the authorization code grant flow in AT Protocol.
GrantTypesSupportMustIncludeAuthorizationCode
Error when the ‘authorization_code’ grant type is not supported.
This error occurs when the authorization server doesn’t support the ‘authorization_code’ grant type, which is required for the AT Protocol OAuth flow.
GrantTypesSupportMustIncludeRefreshToken
Error when the ‘refresh_token’ grant type is not supported.
This error occurs when the authorization server doesn’t support the ‘refresh_token’ grant type, which is required for maintaining long-term access in AT Protocol.
CodeChallengeMethodsSupportedMustIncludeS256
Error when the ‘S256’ code challenge method is not supported.
This error occurs when the authorization server doesn’t support the ‘S256’ code challenge method for PKCE, which is required for secure authorization code flow.
TokenEndpointAuthMethodsSupportedMustIncludeNone
Error when the ‘none’ token endpoint auth method is not supported.
This error occurs when the authorization server doesn’t support the ‘none’ token endpoint authentication method, which is used for public clients.
TokenEndpointAuthMethodsSupportedMustIncludePrivateKeyJwt
Error when the ‘private_key_jwt’ token endpoint auth method is not supported.
This error occurs when the authorization server doesn’t support the ‘private_key_jwt’ token endpoint authentication method, which is required for AT Protocol clients.
TokenEndpointAuthSigningAlgValuesMustIncludeES256
Error when the ‘ES256’ signing algorithm is not supported for token endpoint auth.
This error occurs when the authorization server doesn’t support the ‘ES256’ signing algorithm for token endpoint authentication, which is required for AT Protocol.
ScopesSupportedMustIncludeAtProto
Error when the ‘atproto’ scope is not supported.
This error occurs when the authorization server doesn’t support the ‘atproto’ scope, which is required for accessing AT Protocol resources.
ScopesSupportedMustIncludeTransitionGeneric
Error when the ‘transition:generic’ scope is not supported.
This error occurs when the authorization server doesn’t support the ‘transition:generic’ scope, which is required for transitional functionality in AT Protocol.
DpopSigningAlgValuesSupportedMustIncludeES256
Error when the ‘ES256’ DPoP signing algorithm is not supported.
This error occurs when the authorization server doesn’t support the ‘ES256’ signing algorithm for DPoP proofs, which is required for AT Protocol security.
RequiredServerFeaturesMustBeSupported
Error when required server features are not supported.
This error occurs when the authorization server doesn’t support required features such as pushed authorization requests, client ID metadata, or authorization response parameters.
Trait Implementations§
Source§impl Debug for AuthServerValidationError
impl Debug for AuthServerValidationError
Source§impl Display for AuthServerValidationError
impl Display for AuthServerValidationError
Source§impl Error for AuthServerValidationError
impl Error for AuthServerValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for AuthServerValidationError
impl RefUnwindSafe for AuthServerValidationError
impl Send for AuthServerValidationError
impl Sync for AuthServerValidationError
impl Unpin for AuthServerValidationError
impl UnwindSafe for AuthServerValidationError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.