springboot (2) 썸네일형 리스트형 Kotlin + Spring boot security + thymeleaf 로그인 구현(3) 2019/03/28 - [SW개발] - Kotlin + Spring boot security + thymeleaf 로그인 구현(1) 2019/04/01 - [SW개발] - Kotlin + Spring boot security + thymeleaf 로그인 구현(2) 이전 글까지, 따라왔다면 여기까지 만들어졌을겁니다. 이번 글에서는 Spring Security를 통해, 이전 글에서 만든 Provider를 빈으로 등록하고, 이를 통해 인증을 처리하는 config를 구현하겠습니다 1. WebSeurityConfigurerAdpater 구현 이 인터페이스는, 스프링 시큐리티에서 가장 핵심 적인 역할을 합니다. AuthenticationManagerBuilder : AuthenticationProvider 설정 W.. Kotlin + Spring boot security + thymeleaf 로그인 구현(2) 2019/03/28 - [SW개발] - Kotlin + Spring boot security + thymeleaf 로그인 구현(1) 프로젝트가 무사히 생성 됐다면, 위 화면처럼 됐을겁니다. 간단한 로그인 구현은 이렇게 만들어진 프로젝트에서 해보겠습니다. 1. UserDeatails 인터페이스 구현 Security에서 사용할 UserDetails객체를 구현합니다. 이는 사용자의 정보를 담아주는 역할을 합니다. class MyUserDetail(val id : String, val pw : String, val role : String) : UserDetails { override fun getAuthorities(): MutableCollection { val authorities = ArrayList().. 이전 1 다음