xInt->xRaw

This commit is contained in:
Jeff Mitchell
2016-06-09 13:54:04 -04:00
parent 99235e83c7
commit 6c76bcd3b6

View File

@@ -77,11 +77,11 @@ func (b *backend) pathLoginRenew(
return nil, fmt.Errorf("request auth was nil")
}
tokenInt, ok := req.Auth.InternalData["token"]
tokenRaw, ok := req.Auth.InternalData["token"]
if !ok {
return nil, fmt.Errorf("token created in previous version of Vault cannot be validated properly at renewal time")
}
token := tokenInt.(string)
token := tokenRaw.(string)
var verifyResp *verifyCredentialsResp
if verifyResponse, resp, err := b.verifyCredentials(req, token); err != nil {