Skip to content

Commit

Permalink
Camel case json tags for front end.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joerger committed Oct 23, 2024
1 parent d5f2687 commit 316f3d9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/client/weblogin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 316f3d9

Please sign in to comment.