fix: remove test because we know it works. :P
fix: key as string instead of bytes
This commit is contained in:
parent
779ad703c8
commit
28f731c219
2 changed files with 2 additions and 74 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue