Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.x.OIDC fix post endsession and authorize #425

Merged
merged 5 commits into from
Nov 3, 2023
Merged

Conversation

gianpaolo-tndigit
Copy link
Collaborator

add ignore path for CSRF for:
"/endsession"
"/oauth/authorize"

to permit POST request as specifics OIDC

@gianpaolo-tndigit gianpaolo-tndigit changed the base branch from master to 5.x September 21, 2023 11:02
@@ -106,8 +107,10 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
// match only user endpoints
http
.requestMatcher(getRequestMatcher())
// .authorizeRequests().anyRequest().authenticated().and()
.authorizeRequests(authorizeRequests -> authorizeRequests.anyRequest().hasAnyAuthority(Config.R_USER))
//.authorizeRequests().anyRequest().authenticated().and()
Copy link
Collaborator

Choose a reason for hiding this comment

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

please format according to prettier and checkstyle rules

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

resolve with 17c2c28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants