Skip to content

Commit

Permalink
Merge remote branch 'upstream/master' into code-flow-to-server
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDaveD committed Aug 14, 2020
2 parents f00a280 + 5aa3d0e commit 6be338e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion path_config.go
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/hashicorp/vault/sdk/helper/strutil"
"github.com/hashicorp/vault/sdk/logical"
"golang.org/x/oauth2"
jose "gopkg.in/square/go-jose.v2"
)

const (
Expand Down Expand Up @@ -258,7 +259,7 @@ func (b *jwtAuthBackend) pathConfigWrite(ctx context.Context, req *logical.Reque
// default to e.g. "none".
for _, a := range config.JWTSupportedAlgs {
switch a {
case oidc.RS256, oidc.RS384, oidc.RS512, oidc.ES256, oidc.ES384, oidc.ES512, oidc.PS256, oidc.PS384, oidc.PS512:
case oidc.RS256, oidc.RS384, oidc.RS512, oidc.ES256, oidc.ES384, oidc.ES512, oidc.PS256, oidc.PS384, oidc.PS512, string(jose.EdDSA):
default:
return logical.ErrorResponse(fmt.Sprintf("Invalid supported algorithm: %s", a)), nil
}
Expand Down

0 comments on commit 6be338e

Please sign in to comment.