fix: remove test because we know it works. :P

fix: key as string instead of bytes
This commit is contained in:
adlerhurst 2020-09-16 15:48:52 +02:00
parent 779ad703c8
commit 28f731c219
2 changed files with 2 additions and 74 deletions

View file

@ -78,14 +78,14 @@ func NewJWTProfileAssertionFromKeyJSON(filename string, audience []string) (*JWT
}
keyData := new(struct {
KeyID string `json:"keyId"`
Key []byte `json:"key"`
Key string `json:"key"`
UserID string `json:"userId"`
})
err = json.Unmarshal(data, keyData)
if err != nil {
return nil, err
}
return NewJWTProfileAssertion(keyData.UserID, keyData.KeyID, audience, keyData.Key), nil
return NewJWTProfileAssertion(keyData.UserID, keyData.KeyID, audience, []byte(keyData.Key)), nil
}
func NewJWTProfileAssertion(userID, keyID string, audience []string, key []byte) *JWTProfileAssertion {