From 924416149c50c95058bb144cd1be0c6c741d5343 Mon Sep 17 00:00:00 2001 From: Paul Z Date: Sun, 27 Aug 2023 23:19:20 +0200 Subject: [PATCH] optional claims --- src/grpc_service.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/grpc_service.rs b/src/grpc_service.rs index c01b147..7b47a82 100644 --- a/src/grpc_service.rs +++ b/src/grpc_service.rs @@ -131,11 +131,11 @@ pub struct Claims { pub sub: String, pub azp: String, - pub name: String, - pub preferred_username: String, - pub given_name: String, - pub family_name: String, - pub email: String, + pub name: Option, + pub preferred_username: Option, + pub given_name: Option, + pub family_name: Option, + pub email: Option, } async fn extract_token(