Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/service-accounts' into service-a…
Browse files Browse the repository at this point in the history
…ccounts
  • Loading branch information
livio-a committed Sep 16, 2020
2 parents 64797c1 + 4a917fb commit 0547bfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/rp/tockenexchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ func generateJWTProfileToken(assertion *oidc.JWTProfileAssertion) (string, error
return "", err
}

jsonadsk, err := json.Marshal(assertion)
marshalledAssertion, err := json.Marshal(assertion)
if err != nil {
return "", err
}
signiert, err := signer.Sign(jsonadsk)
signedAssertion, err := signer.Sign(marshalledAssertion)
if err != nil {
return "", err
}
return signiert.CompactSerialize()
return signedAssertion.CompactSerialize()
}

func bytesToPrivateKey(priv []byte) (*rsa.PrivateKey, error) {
Expand Down

0 comments on commit 0547bfb

Please sign in to comment.