728x90
토큰
-
Web - JWT란?Web/Web 2021. 10. 19. 22:18
JWT란? JWT의 정의 ㆍ JWT(Json Web Token)이란 Json 객체를 사용하여 가볍고 자가 수용적인 방식으로 정보를 안전성 있게 전달해주기 위한 토큰이다. ㆍ 주로 회원 인증이나 정보 전달에 사용된다. JWT의 구성요소 ㆍ JWT는 '.'을 구분자로 3가지의 문자열로 구성된다. ㆍ aaaaaa.bbbbbb.cccccc의 구조를 기준으로 앞부분부터 헤더(eader), 정보(payload), 서명(signature)으로 구성된다. JWT의 사용 과정 1. 브라우저에서 로그인을 수행하기 위해 username과 password를 입력한다. 2. 서버 측에서 입력받은 정보를 통해 JWT를 생성한다. 3. 서버는 브라우저에게 생성한 JWT를 전달한다. 4. 브라우저는 JWT를 가지고 서버에게 데이터를..