From 54d6afbe21a94c8de53852d4cd550de75473557f Mon Sep 17 00:00:00 2001 From: Vika Date: Fri, 15 Jul 2022 02:14:09 +0300 Subject: WIP: IndieAuth progress - Some kittybox-indieauth crate bugs were fixed - Things should mostly work... - ...if you somehow supply your own backend store - YES I MADE IT MODULAR AGAIN - NO I AM NOT SORRY - YOU WILL THANK ME LATER - DO NOT DENY THE HEAVENLY GIFT OF GENERICS IN RUST - Retrieving profiles doesn't work for now because I am unsure how to implement it best --- kittybox-rs/indieauth/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kittybox-rs/indieauth/src/lib.rs') diff --git a/kittybox-rs/indieauth/src/lib.rs b/kittybox-rs/indieauth/src/lib.rs index 9408eb6..eca1102 100644 --- a/kittybox-rs/indieauth/src/lib.rs +++ b/kittybox-rs/indieauth/src/lib.rs @@ -145,7 +145,7 @@ pub enum GrantResponse { profile: Option, access_token: String, #[serde(skip_serializing_if = "Option::is_none")] - expires_in: Option, + expires_in: Option, #[serde(skip_serializing_if = "Option::is_none")] refresh_token: Option }, @@ -257,6 +257,8 @@ pub struct TokenRevocationRequest { pub token: String } +// TODO rework in accordance with https://datatracker.ietf.org/doc/html/rfc6749#section-5.2 +// turns out I got some values wrong #[derive(Debug, Clone, Copy, Serialize, Deserialize)] #[serde(rename_all = "snake_case")] #[serde(tag = "error")] -- cgit 1.4.1