From b44fd9a78c1505258178a51201e8abea9977baa5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 8 Jan 2019 15:27:05 -0800 Subject: /auth/oidc endpoint has 31 day limit --- rust/src/api_wrappers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/src/api_wrappers.rs b/rust/src/api_wrappers.rs index 818a41c2..22b5f857 100644 --- a/rust/src/api_wrappers.rs +++ b/rust/src/api_wrappers.rs @@ -1161,10 +1161,10 @@ impl Api for Server { )?; auth_context.require_role(FatcatRole::Superuser)?; let (editor, created) = self.auth_oidc_handler(params, &conn)?; - // create an auth token; leave it to webface to attenuate to a given duration + // create an auth token with 31 day duration let token = self.auth_confectionary.create_token( FatCatId::from_str(&editor.editor_id.clone().unwrap())?, - None, + Some(chrono::Duration::days(31)), )?; let result = AuthOidcResult { editor, token }; Ok((result, created)) -- cgit v1.2.3