We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 283ea76 commit 3b66027Copy full SHA for 3b66027
src/main/java/net/coderic/core/api/config/SecurityConfiguration.java
@@ -134,9 +134,8 @@ private JwtAuthenticationConverter jwtAuthenticationConverter() {
134
}
135
@Bean
136
public JwtDecoder jwtDecoder() {
137
- // Clave simétrica utilizada para descifrar el token (debe coincidir con la configurada en Auth0)
138
- String secretKey = System.getenv("OKTA_CLIENT_SECRET"); // Sustituye con la clave proporcionada por Auth0
139
-
140
- return NimbusJwtDecoder.withSecretKey(new SecretKeySpec(secretKey.getBytes(), "AES")).build();
+ // URI del JWKS de Auth0
+ String jwkSetUri = "https://auth.coderic.org/.well-known/jwks.json";
+ return NimbusJwtDecoder.withJwkSetUri(jwkSetUri).build();
141
142
0 commit comments