We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6d0cf1 commit 569f25eCopy full SHA for 569f25e
internal/translator/oauth.go
@@ -20,6 +20,10 @@ func (c *Config) updateAuth(ctx context.Context) error {
20
if res := c.repository.RSA; res != "" {
21
c.ensureJWTValidator(cfg)
22
cfg.JWTValidator.RSA = getScyResource(res)
23
+ if cfg.JwtSigner == nil {
24
+ cfg.JwtSigner = &signer.Config{}
25
+ }
26
+ cfg.JwtSigner.RSA = getScyResource(res)
27
}
28
29
if res := c.repository.HMAC; res != "" {
@@ -28,7 +32,9 @@ func (c *Config) updateAuth(ctx context.Context) error {
32
if cfg.JwtSigner == nil {
33
cfg.JwtSigner = &signer.Config{}
30
34
31
- cfg.JwtSigner.HMAC = getScyResource(res)
35
+ if cfg.JwtSigner.RSA == nil { //prioritize RSA over HMAC
36
+ cfg.JwtSigner.HMAC = getScyResource(res)
37
38
39
40
if res := c.repository.Firebase; res != "" {
0 commit comments