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