From 316f3d9bc004752c2100979fbbb9916fb6ef1420 Mon Sep 17 00:00:00 2001 From: joerger Date: Wed, 23 Oct 2024 10:44:40 -0700 Subject: [PATCH] Camel case json tags for front end. --- lib/client/weblogin.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/client/weblogin.go b/lib/client/weblogin.go index a9114e24ee680..0d8ca5e99bb4b 100644 --- a/lib/client/weblogin.go +++ b/lib/client/weblogin.go @@ -117,7 +117,7 @@ type MFAChallengeResponse struct { // SSOResponse is a json compatible [proto.SSOResponse]. type SSOResponse struct { - RequestID string `json:"request_id,omitempty"` + RequestID string `json:"requestId,omitempty"` Token string `json:"token,omitempty"` } @@ -471,16 +471,16 @@ type MFAAuthenticateChallenge struct { // SSOChallenge is a json compatible [proto.SSOChallenge]. type SSOChallenge struct { - RequestID string `json:"request_id,omitempty"` - RedirectURL string `json:"redirect_url,omitempty"` + RequestID string `json:"requestId,omitempty"` + RedirectURL string `json:"redirectUrl,omitempty"` Device *SSOMFADevice `json:"device"` } // SSOMFADevice is a json compatible [proto.SSOMFADevice]. type SSOMFADevice struct { - ConnectorID string `json:"connector_id,omitempty"` - ConnectorType string `json:"connector_type,omitempty"` - DisplayName string `json:"display_name,omitempty"` + ConnectorID string `json:"connectorId,omitempty"` + ConnectorType string `json:"connectorType,omitempty"` + DisplayName string `json:"displayName,omitempty"` } func SSOChallengeFromProto(ssoChal *proto.SSOChallenge) *SSOChallenge {