From 32cc22ca918685f15c7a847a6242975245c20817 Mon Sep 17 00:00:00 2001 From: Zhiming Guo Date: Sun, 4 Sep 2022 15:58:00 +1000 Subject: [PATCH 1/2] increase default id token expiry to 2 hours --- src/oidc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oidc.rs b/src/oidc.rs index 05c623b..fb0b24e 100644 --- a/src/oidc.rs +++ b/src/oidc.rs @@ -282,7 +282,7 @@ pub async fn token( let core_id_token = CoreIdTokenClaims::new( IssuerUrl::from_url(base_url), vec![Audience::new(client_id.clone())], - Utc::now() + Duration::seconds(60), + Utc::now() + Duration::hours(2), Utc::now(), resolve_claims( eth_provider, From 7fd28ea3464725c6434123da488220a53c8901e8 Mon Sep 17 00:00:00 2001 From: Zhiming Guo Date: Sun, 4 Sep 2022 16:00:50 +1000 Subject: [PATCH 2/2] increase default id token duration to 6 --- src/oidc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oidc.rs b/src/oidc.rs index fb0b24e..ba11116 100644 --- a/src/oidc.rs +++ b/src/oidc.rs @@ -282,7 +282,7 @@ pub async fn token( let core_id_token = CoreIdTokenClaims::new( IssuerUrl::from_url(base_url), vec![Audience::new(client_id.clone())], - Utc::now() + Duration::hours(2), + Utc::now() + Duration::hours(6), Utc::now(), resolve_claims( eth_provider,