-
Notifications
You must be signed in to change notification settings - Fork 16
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
Ory based authorization #858
base: dev
Are you sure you want to change the base?
Conversation
…nagementPortal into feat/hydra-token
…nagementPortal into hydra-kratos-stack
…into feature/ory-based-authorization
Add Ory stack configs
… into feat/hydra-token
…gementPortal into feat/hydra-token
…cked and security context is cleared after
Change login flow to use Ory
…into feature/ory-based-authorization
@Throws(Exception::class) | ||
public override fun configure(http: HttpSecurity) { | ||
http | ||
.csrf().disable() |
Check failure
Code scanning / CodeQL
Disabled Spring CSRF protection High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI about 1 month ago
To fix the issue, we need to enable CSRF protection in the SecurityConfiguration
class. This involves removing the csrf().disable()
line from the configure
method. By doing this, we ensure that CSRF protection is enabled, which helps prevent CSRF attacks.
- General Fix: Enable CSRF protection by removing the line that disables it.
- Detailed Fix: Remove the
csrf().disable()
line from theconfigure
method in theSecurityConfiguration
class. - Specific Changes: Edit the
configure
method in theSecurityConfiguration
class located insrc/main/java/org/radarbase/management/config/SecurityConfiguration.kt
.
@@ -123,3 +123,2 @@ | ||
http | ||
.csrf().disable() | ||
.sessionManagement() |
…into feature/ory-based-authorization
Description: Gather all PRs related to moving from spring-security based oauth2 to ory.
Checklist: