백엔드

API_TEST JWT (JSON Web Token)

정윤욱 2022. 7. 2. 18:07

JWT을 이용하여 개인의 id 토큰을 얻은 뒤

토큰을 가진 사람만 이용 할  수 있게 설정한다.

공식 사이트:

https://jwt.io/

 

JWT.IO

JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.

jwt.io

Flask-JWT-Extended 라이브러리 옵션 설명:

https://flask-jwt-extended.readthedocs.io/en/latest/options/

 

Configuration Options — flask-jwt-extended 4.4.2 documentation

JSON Body Options: These are only applicable if a route is configured to accept JWTs via the JSON body. JWT_JSON_KEY What key should contain the access token in the JSON body of a request. Default: "access_token" JWT_REFRESH_JSON_KEY What key should contai

flask-jwt-extended.readthedocs.io