Skip to content

[boot-upgrade] [Spring-Security] Removed WebSecurityConfigurerAdapter #979

Closed
@BoykoAlex

Description

@BoykoAlex

The WebSecurityConfigurerAdapter is deprecated in the last versions of Spring-Security 5.x used in Spring-Boot 2.7.x. As of Spring-Security 6.x and Spring-Boot 3.x the WebSecurityConfigurerAdapter is removed.

Migration guide for the Removed WebSecurityConfigurerAdapter

The migration guide splits migration in 5 cases (parts are completed in WebSecurityConfigurerAdapter recipe in rewrite-spring project:

  • HttpSecurity (done)
  • WebSecurity (done)
  • Authentication
    • In-Memory (done)
    • LDAP
    • JDBC

Remaining cases are LDAP and JDBC authentication which seem challenging as methods bodies requires significant changes even going outside the scope of one method. Looks like only some migration cases are possible to cover with rewrite. It is challenging to write code that would reliably determine conditions when it is possible to perform automated migration.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions