Modernizes the default Spring Web Authentication/Login UI and makes it easier customizable.
The library provides an adapter that can be used like this:
public SecurityFilterChain configure(final HttpSecurity http) throws Exception
{
// Changing the text "Login with" to "Sign in with"
http.with(new AdvancedLoginPageAdapter<>(http), c -> c
.customizeLoginPage(p -> p.ssoLoginHeaderText("Sign in with")))
.oauth2Login(c ->
// ...
)
// ...
}
A more detailed scenario is available in the demo.
Note
By default Bootstrap is loaded from cdn.jsdelivr.net
.
Due to privacy and stability reasons you should ship your own version!
An example how this can be done is shown in the demo.
Note
The Advanced
-subsystem uses the pre-Spring Security 6.4
/ Spring Boot 3.4
templating system (without Regex).
- In contrast to Spring's new Regex based system not all values are escaped by default
- Usually they don't need to be escaped in the first place as they are set on the server side and can't be modified by a user
- This is A LOT FASTER (in tests around 50x) than Spring's new Regex based system
Installation guide for the latest release
Note
To minimize the risk of dependency conflicts all Spring (Boot) dependencies are declared as provided and are not shipped by default.
If you need support as soon as possible and you can't wait for any pull request, feel free to use our support.
See the contributing guide for detailed instructions on how to get started with our project.
View the license of the current project or the summary including all dependencies