Skip to content

Commit

Permalink
fix to send username so that SAM users can be used
Browse files Browse the repository at this point in the history
  • Loading branch information
bearmini committed Jul 28, 2016
1 parent 02b9d4a commit 26631c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generators/cmd/predefined/auth_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type authRequest struct {
Password *string `json:"password,omitempty"`
AuthKeyID *string `json:"authKeyId,omitempty"`
AuthKey *string `json:"authKey,omitempty"`
Username *string `json:"userName,omitempty"`
OperatorID *string `json:"operatorId,omitempty"`
}

Expand All @@ -34,6 +35,7 @@ func authHelper(ac *apiClient, cmd *cobra.Command, args []string) error {
Password: profile.Password,
AuthKeyID: profile.AuthKeyID,
AuthKey: profile.AuthKey,
Username: profile.Username,
OperatorID: profile.OperatorID,
}

Expand Down
2 changes: 2 additions & 0 deletions soracom/generated/cmd/auth_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type authRequest struct {
Password *string `json:"password,omitempty"`
AuthKeyID *string `json:"authKeyId,omitempty"`
AuthKey *string `json:"authKey,omitempty"`
Username *string `json:"userName,omitempty"`
OperatorID *string `json:"operatorId,omitempty"`
}

Expand All @@ -34,6 +35,7 @@ func authHelper(ac *apiClient, cmd *cobra.Command, args []string) error {
Password: profile.Password,
AuthKeyID: profile.AuthKeyID,
AuthKey: profile.AuthKey,
Username: profile.Username,
OperatorID: profile.OperatorID,
}

Expand Down

0 comments on commit 26631c6

Please sign in to comment.