about summary refs log tree commit diff
path: root/indieauth/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'indieauth/src/lib.rs')
-rw-r--r--indieauth/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/indieauth/src/lib.rs b/indieauth/src/lib.rs
index 20c1316..b10fd0e 100644
--- a/indieauth/src/lib.rs
+++ b/indieauth/src/lib.rs
@@ -36,18 +36,21 @@ pub use rand;
 /// mandatory.
 #[derive(Copy, Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
 #[non_exhaustive]
-#[serde(rename_all = "snake_case")]
 pub enum IntrospectionEndpointAuthMethod {
     /// `Authorization` header with a `Bearer` token.
     #[serde(rename_all = "PascalCase")]
     Bearer,
     /// A token passed as part of a POST request.
+    #[serde(rename_all = "snake_case")]
     ClientSecretPost,
     /// Username and password passed using HTTP Basic authentication.
+    #[serde(rename_all = "snake_case")]
     ClientSecretBasic,
     /// TLS client auth with a certificate signed by a valid CA.
+    #[serde(rename_all = "snake_case")]
     TlsClientAuth,
     /// TLS client auth with a self-signed certificate.
+    #[serde(rename_all = "snake_case")]
     SelfSignedTlsClientAuth,
 }