Skip to content

Commit fffbc4e

Browse files
committed
Add a note about defaults
1 parent 0e93b06 commit fffbc4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

path_config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ func (b *jwtAuthBackend) pathConfigWrite(ctx context.Context, req *logical.Reque
239239
return nil, errors.New("unknown condition")
240240
}
241241

242+
// NOTE: the OIDC lib states that if nothing is passed into its config, it
243+
// defaults to "RS256". So in the case of a zero value here it won't
244+
// default to e.g. "none".
242245
for _, a := range config.JWTSupportedAlgs {
243246
switch a {
244247
case oidc.RS256, oidc.RS384, oidc.RS512, oidc.ES256, oidc.ES384, oidc.ES512, oidc.PS256, oidc.PS384, oidc.PS512:

0 commit comments

Comments
 (0)