Skip to content

Add a Minimal Authorization Server Configuration #18144

@rwinch

Description

@rwinch

The reference currently has two samples. It would be nice if there was an intermediate example that shows a minimal configuration with HttpSecurity similar to:

@Bean
SecurityFilterChain springSecurity(HttpSecurity http) {
    http
        .authorizeHttpRequests(requests -> requests
            .anyRequest().authenticated()
        )
        .authorizationServer(auth -> auth
            .oidc(Customizer.withDefaults())
        )
        .formLogin(Customizer.withDefaults());
    return http.build();
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions