Skip to content

Instantly share code, notes, and snippets.

View akuma8's full-sized avatar

Attoumane akuma8

View GitHub Profile
@akuma8
akuma8 / AuthorizationServerConfiguration
Last active July 15, 2025 11:48
Example of Password Grant Type implementation for Spring Authorization Server: https://github.com/spring-projects/spring-authorization-server
/**
* @author Attoumane AHAMADI
*/
@Configuration(proxyBeanMethods = false)
public class AuthorizationServerConfiguration {
@Bean
@Order(Ordered.HIGHEST_PRECEDENCE)
public SecurityFilterChain authorizationServerSecurityFilterChain(HttpSecurity http,
UserDetailsService userDetailsService,