Skip to content

Commit 0bc4015

Browse files
committed
Breackpoint
1 parent b2b9437 commit 0bc4015

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/main/java/net/coderic/core/api/config/SecurityConfiguration.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,16 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
9898
new XFrameOptionsHeaderWriter(XFrameOptionsHeaderWriter.XFrameOptionsMode.DENY)
9999
)
100100
)
101-
.oauth2ResourceServer(oauth2 -> oauth2
102-
.jwt(jwt -> jwt
103-
.jwkSetUri("https://auth.coderic.org/.well-known/jwks.json")
104-
.jwtAuthenticationConverter(jwtAuthenticationConverter()
105-
)
101+
.oauth2ResourceServer(oauth2 -> oauth2
102+
.jwt(jwt -> jwt
103+
.jwtAuthenticationConverter(jwtAuthenticationConverter())
104+
.jwkSetUri("https://auth.coderic.org/.well-known/jwks.json")
106105
)
107106
)
108107
.requiresChannel(
109108
channel -> channel
110-
.anyRequest()
111-
.requiresSecure()
109+
.anyRequest()
110+
.requiresSecure()
112111
);
113112
return http.build();
114113
}
@@ -131,8 +130,4 @@ private JwtAuthenticationConverter jwtAuthenticationConverter() {
131130
// Configura cómo deseas mapear los claims del token JWT a roles/autorizaciones
132131
return converter;
133132
}
134-
@Bean
135-
public JwtDecoder jwtDecoder() {
136-
return JwtDecoders.fromIssuerLocation("https://auth.coderic.org/");
137-
}
138133
}

0 commit comments

Comments
 (0)