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

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)status: duplicateA duplicate of another issuetype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions