File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
src/main/java/net/coderic/core/api/config Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -98,17 +98,16 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
98
98
new XFrameOptionsHeaderWriter (XFrameOptionsHeaderWriter .XFrameOptionsMode .DENY )
99
99
)
100
100
)
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" )
106
105
)
107
106
)
108
107
.requiresChannel (
109
108
channel -> channel
110
- .anyRequest ()
111
- .requiresSecure ()
109
+ .anyRequest ()
110
+ .requiresSecure ()
112
111
);
113
112
return http .build ();
114
113
}
@@ -131,8 +130,4 @@ private JwtAuthenticationConverter jwtAuthenticationConverter() {
131
130
// Configura cómo deseas mapear los claims del token JWT a roles/autorizaciones
132
131
return converter ;
133
132
}
134
- @ Bean
135
- public JwtDecoder jwtDecoder () {
136
- return JwtDecoders .fromIssuerLocation ("https://auth.coderic.org/" );
137
- }
138
133
}
You can’t perform that action at this time.
0 commit comments