Update github.com/coreos/go-oidc
This commit is contained in:
3
vendor/github.com/coreos/go-oidc/jose/sig.go
generated
vendored
3
vendor/github.com/coreos/go-oidc/jose/sig.go
generated
vendored
@@ -2,7 +2,6 @@ package jose
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type Verifier interface {
|
||||
@@ -17,7 +16,7 @@ type Signer interface {
|
||||
}
|
||||
|
||||
func NewVerifier(jwk JWK) (Verifier, error) {
|
||||
if strings.ToUpper(jwk.Type) != "RSA" {
|
||||
if jwk.Type != "RSA" {
|
||||
return nil, fmt.Errorf("unsupported key type %q", jwk.Type)
|
||||
}
|
||||
|
||||
|
||||
3
vendor/github.com/coreos/go-oidc/jose/sig_hmac.go
generated
vendored
3
vendor/github.com/coreos/go-oidc/jose/sig_hmac.go
generated
vendored
@@ -7,7 +7,6 @@ import (
|
||||
_ "crypto/sha256"
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type VerifierHMAC struct {
|
||||
@@ -21,7 +20,7 @@ type SignerHMAC struct {
|
||||
}
|
||||
|
||||
func NewVerifierHMAC(jwk JWK) (*VerifierHMAC, error) {
|
||||
if strings.ToUpper(jwk.Alg) != "HS256" {
|
||||
if jwk.Alg != "" && jwk.Alg != "HS256" {
|
||||
return nil, fmt.Errorf("unsupported key algorithm %q", jwk.Alg)
|
||||
}
|
||||
|
||||
|
||||
3
vendor/github.com/coreos/go-oidc/jose/sig_rsa.go
generated
vendored
3
vendor/github.com/coreos/go-oidc/jose/sig_rsa.go
generated
vendored
@@ -5,7 +5,6 @@ import (
|
||||
"crypto/rand"
|
||||
"crypto/rsa"
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type VerifierRSA struct {
|
||||
@@ -20,7 +19,7 @@ type SignerRSA struct {
|
||||
}
|
||||
|
||||
func NewVerifierRSA(jwk JWK) (*VerifierRSA, error) {
|
||||
if strings.ToUpper(jwk.Alg) != "RS256" {
|
||||
if jwk.Alg != "" && jwk.Alg != "RS256" {
|
||||
return nil, fmt.Errorf("unsupported key algorithm %q", jwk.Alg)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user