일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Spring Boot
- Exception
- QueryDSL
- transaction
- 스프링 핵심 원리
- spring
- 스프링
- java
- 그리디
- Greedy
- JDBC
- SpringBoot
- AOP
- 김영한
- 백준
- Proxy
- 스프링 핵심 기능
- springdatajpa
- 자바
- 인프런
- http
- db
- pointcut
- JPQL
- kotlin
- Thymeleaf
- Servlet
- 알고리즘
- Android
- jpa
- Today
- Total
목록인증 (2)
개발자되기 프로젝트
1. LoginCheckInterceptor 인증은 controller호출 전에만 진행되면 된다. preHandle만 구현하자. 미인증 사용자 요정이 들어온 경우 preHandler()은 false를 return하여 더 이상 진행하지 않는다. @Slf4j public class LoginCheckInterceptor implements HandlerInterceptor { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { String requestURI = request.getRequestURI(); log.info("인증 체크..
Authorization: 클라이언트 인증 정보를 서버에 전달 WWW-Authenticate: 리소스 접근시 필요한 인증 방법 정의 1. Authorization : 클라이언트 인증 정보를 서버에 전달 Authorization: Basic xxxxxxxxxxxx 인증 종류마다 값이 달라짐 HTTP 에서 어떤 인증인지 관계없이 헤더 제공 2. WWW-Authenticate : 리소스 접근시 필요한 인증 방법 정의 리소스 접근시 필요한 인증 방법 정의 401 Unathorized 응답과 함꼐 사용 WWW-AUthenticate: Newauth realm='apps', type=1, title="Login to\"apps\"", Basic realm="simple"