Skip to content

Commit ca241cf

Browse files
7ttpsweatybridge
andauthored
fix: enable es256 jwt signing algorithm support for gotrue (#4489)
* fix: enable es256 jwt signing algorithm support for gotrue * Apply suggestion from @sweatybridge * Refactor JWT valid methods assignment * Add comment on signing key validation process Added comment about signing key validation and reading key file. --------- Co-authored-by: Han Qiao <sweatybridge@gmail.com>
1 parent 6d9e316 commit ca241cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/start/start.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,8 @@ EOF
534534
// Since signing key is validated by ResolveJWKS, simply read the key file.
535535
if keys, err := afero.ReadFile(fsys, utils.Config.Auth.SigningKeysPath); err == nil && len(keys) > 0 {
536536
env = append(env, "GOTRUE_JWT_KEYS="+string(keys))
537+
// TODO: deprecate HS256 when it's no longer supported
538+
env = append(env, "GOTRUE_JWT_VALID_METHODS=HS256,RS256,ES256")
537539
}
538540

539541
if utils.Config.Auth.Email.Smtp != nil && utils.Config.Auth.Email.Smtp.Enabled {

0 commit comments

Comments
 (0)