Skip to content

Commit

Permalink
Modifying auth response type to be public [#146297845]
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Huang <[email protected]>
  • Loading branch information
pivotal-saman-alvi authored and mhuangpivotal committed Jun 29, 2017
1 parent d298c1a commit ae97481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (e AuthService) Check() (bool, error) {
func (e AuthService) FetchUAAToken(username, password string) (UAATokenResponse, error) {
url := "/authentication"

body := authBody{Username: username, Password: password}
body := AuthBody{Username: username, Password: password}
b, err := json.Marshal(body)
if err != nil {
return UAATokenResponse{}, err
Expand Down Expand Up @@ -78,7 +78,7 @@ func (e AuthService) FetchUAAToken(username, password string) (UAATokenResponse,
return response, err
}

type authBody struct {
type AuthBody struct {
Username string `json:"username"`
Password string `json:"password"`
}

0 comments on commit ae97481

Please sign in to comment.