From 1c6b31087f855cf58f0daf6407b2aaa2997bf339 Mon Sep 17 00:00:00 2001 From: Prabhjot Singh Sethi Date: Fri, 30 May 2025 04:36:47 +0000 Subject: [PATCH] Enable more fields in AuthInfo struct Signed-off-by: Prabhjot Singh Sethi --- auth/auth.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/auth/auth.go b/auth/auth.go index f244c07..05c53da 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -19,11 +19,14 @@ import ( // the inforamtion internally in the system between the microservices // we can validate entities like user, devices, service accounts etc type AuthInfo struct { - Realm string `json:"realm,omitempty"` - UserName string `json:"preferred_username"` - Email string `json:"email,omitempty"` - FullName string `json:"name,omitempty"` - SessionID string `json:"sid"` + Realm string `json:"realm,omitempty"` + UserName string `json:"preferred_username"` + Email string `json:"email,omitempty"` + EmailVerified bool `json:"email_verified,omitempty"` + FullName string `json:"name,omitempty"` + FirstName string `json:"given_name,omitempty"` + LastName string `json:"family_name,omitempty"` + SessionID string `json:"sid"` } // struct identifier for the context