Skip to content

Commit

Permalink
Fixed emitting empty uid value in login credentials.
Browse files Browse the repository at this point in the history
With this commit we fix that the CLI only emits the `uid` value in the
login credentials when explicitly setting it. This is needed to fix a
bug when using the `browser-prompt-oidcidtoken-get-authtoken` method.

https://jira.mesosphere.com/browse/DCOS_OSS-4599
  • Loading branch information
rgo3 authored and armandgrillet committed Dec 12, 2018
1 parent 20d7f29 commit 89798c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/login/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var (

// Credentials is the payload for login POST requests.
type Credentials struct {
UID string `json:"uid"`
UID string `json:"uid,omitempty"`
Password string `json:"password,omitempty"`
Token string `json:"token,omitempty"`
}
Expand Down

0 comments on commit 89798c4

Please sign in to comment.