목록전체 글 (601)
sm 기술 블로그

https://smhope.tistory.com/517 [스프링 부트] JWT(Json Web Token)란? JWT(Json Web Token) : 두 개체에서 JSON객체를 사용하여 정보를 안정성 있게 전달해주는 인증 방식이다. jwt는 다음과 같은 구성을 지니고 있다. 실제로 다음과 같은 형식을 지니고, https://jwt.io/ 다음 사 smhope.tistory.com Dependency jwt와 security가 필요하다. // == gradle == implementation group: 'io.jsonwebtoken', name: 'jjwt', version: '0.9.1' implementation 'org.springframework.boot:spring-boot-starter-sec..

JWT(Json Web Token) : 두 개체에서 JSON객체를 사용하여 정보를 안정성 있게 전달해주는 인증 방식이다. jwt는 다음과 같은 구성을 지니고 있다. 실제로 다음과 같은 형식을 지니고, https://jwt.io/ 다음 사이트에서 디코더를 진행하면 payload에 정보가 담긴 것을 알 수 있다. 세션과 JWT 1. 세션 1) 클라이언트에서 서버로 로그인 요청을 보냄 2) 서버는 로그인 정보 확인 후 세션아이디를 응답함. 이 세션아이디는 서버에서도 가지고 있음. 3) 클라이언트의 요청에는 2번에서 응답받은 세션아이디를 쿠키에 담아서 함께 요청 4) 서버는 함께 요청된 쿠키 속의 세션아이디를 확인하여 로그인된 사용자인지 확인한다. 단점 으로는 - 만약 서버가 여러대의 서버에서 운영된다면 서버측..
1. fontawesome install 필요 2. tailwind 사용 import React, {useState} from 'react'; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faEye, faEyeSlash } from "@fortawesome/free-solid-svg-icons"; const input = ({}) => { const[passwordTypem, setPasswordType] = useState({ type: 'password', visible: false }); const handlePasswordType = e => { setPasswordType(() => { if(!passwor..

import java.util.*; import java.io.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(); int N = sc.nextInt(); int[] board = new int[N]; for (int i = 0; i < N; i++) { board[i] = sc.nextInt(); } int M = sc.nextInt(); int[][] dp = new int[N][N]; // 필요한 조건 입력 완료 // dp 채우기 for (int i = 0; i < N; i++) { dp[i][i] = 1; } fo..