Skip to content

Conversation

@loichenninger
Copy link
Contributor

No description provided.

@Override
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
throws ServletException, IOException {
System.out.println("Request to: " + request.getRequestURI());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slf4j not allowed here ?


import java.io.IOException;

public class DebugSecurityFilter extends OncePerRequestFilter {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we push this class in main ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No we don't :-)

}
http
.authorizeHttpRequests(configurer -> configurer
.requestMatchers("/questionnaires/**").hasRole(String.valueOf(ApplicationRole.READER))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.requestMatchers(HttpMethod.GET, "/questionnaires/**") <= to add GET method only

public Collection<GrantedAuthority> convert(Jwt source) {

String[] claimPath = inseeSecurityTokenProperties.getOidcClaimRole().split("\\.");
System.out.println("test");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oups... missing println

@loichenninger loichenninger merged commit c8347b3 into main Mar 20, 2025
8 checks passed
@alicela alicela deleted the devHabilitation branch March 24, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants