about summary refs log tree commit diff
path: root/src/indieauth
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-07-09 01:52:53 +0300
committerVika <vika@fireburn.ru>2024-07-09 01:54:14 +0300
commit644e19aa08b2629d4b69281e14d702f0b9673687 (patch)
tree2744a907b6992b4a37ffba1d7be4bae00f0a59c0 /src/indieauth
parent6479b49c14a2c22a1c5de0d5158726d0b5b8c39b (diff)
downloadkittybox-644e19aa08b2629d4b69281e14d702f0b9673687.tar.zst
kittybox-indieauth: 0.1.0 -> 0.2.0
Added fundamental AutoAuth types. This library can now be used to
augment existing authorization and token endpoints with AutoAuth
capabilities.

See https://github.com/sknebel/AutoAuth/blob/master/AutoAuth.md for
the latest spec draft.
Diffstat (limited to 'src/indieauth')
-rw-r--r--src/indieauth/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/indieauth/mod.rs b/src/indieauth/mod.rs
index def9dfc..811bec6 100644
--- a/src/indieauth/mod.rs
+++ b/src/indieauth/mod.rs
@@ -559,7 +559,8 @@ async fn token_endpoint_post<A: AuthBackend, D: Storage + 'static>(
                 token_type: kittybox_indieauth::TokenType::Bearer,
                 scope: Some(scope),
                 expires_in: Some(ACCESS_TOKEN_VALIDITY),
-                refresh_token: Some(refresh_token)
+                refresh_token: Some(refresh_token),
+                state: None
             }.into_response()
         },
         GrantRequest::RefreshToken {
@@ -653,7 +654,8 @@ async fn token_endpoint_post<A: AuthBackend, D: Storage + 'static>(
                 token_type: kittybox_indieauth::TokenType::Bearer,
                 scope: Some(scope),
                 expires_in: Some(ACCESS_TOKEN_VALIDITY),
-                refresh_token: Some(refresh_token)
+                refresh_token: Some(refresh_token),
+                state: None
             }.into_response()
         }
     }