Skip to content

Commit

Permalink
Support HoK tokens with Interactive Users
Browse files Browse the repository at this point in the history
Prior to the change, only Solution Users could use HoK tokens.

Fixes vmware#1622
  • Loading branch information
dougm committed Sep 24, 2019
1 parent 31565d9 commit d296a5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sts/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ func (s *Signer) Sign(env soap.Envelope) ([]byte, error) {
ID: id,
Value: base64.StdEncoding.EncodeToString(s.Certificate.Certificate[0]),
}
} else {
}
// When requesting HoK token for interactive user, request will have both priv. key and username/password.
if s.user != nil {
header.UsernameToken = &internal.UsernameToken{
Username: s.user.Username(),
}
Expand Down

0 comments on commit d296a5f

Please sign in to comment.