From 87a57d05d772866650cf34fe0e21baeff0bdd3b4 Mon Sep 17 00:00:00 2001 From: Samuel Stine Date: Thu, 10 Feb 2022 21:53:23 -0700 Subject: [PATCH] parse trusted_endpoint_status field --- duouniversal/client.go | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/duouniversal/client.go b/duouniversal/client.go index d28048f..86dbe22 100644 --- a/duouniversal/client.go +++ b/duouniversal/client.go @@ -154,20 +154,21 @@ type UserInfo struct { } type AuthContextInfo struct { - AccessDevice AccessDeviceInfo `json:"access_device"` - Alias string `json:"alias"` - Application ApplicationInfo `json:"application"` - AuthDevice AuthDeviceInfo `json:"auth_device"` - Email string `json:"email"` - EventType string `json:"event_type"` - Factor string `json:"factor"` - Isotimestamp string `json:"isotimestamp"` - OodSoftware string `json:"ood_software"` - Reason string `json:"reason"` - Result string `json:"result"` - Timestamp int `json:"timestamp"` - Txid string `json:"txid"` - User UserInfo `json:"user"` + AccessDevice AccessDeviceInfo `json:"access_device"` + Alias string `json:"alias"` + Application ApplicationInfo `json:"application"` + AuthDevice AuthDeviceInfo `json:"auth_device"` + Email string `json:"email"` + EventType string `json:"event_type"` + Factor string `json:"factor"` + Isotimestamp string `json:"isotimestamp"` + OodSoftware string `json:"ood_software"` + Reason string `json:"reason"` + Result string `json:"result"` + Timestamp int `json:"timestamp"` + Txid string `json:"txid"` + User UserInfo `json:"user"` + TrustedEndpointStatus string `json:"trusted_endpoint_status"` } type TokenResponse struct {