본문 바로가기 메뉴 바로가기

개발자의 끄적끄적..🥳

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

개발자의 끄적끄적..🥳

검색하기 폼
  • ☆ (56)
    • My Life (1)
      • 포스팅 (1)
    • Development (55)
      • JAVA (16)
      • Database & SQL (4)
      • Javascript & jQuery (6)
      • Spring (2)
      • React (1)
      • Git (2)
      • Error (6)
      • TIP (5)
      • .etc (13)
  • 방명록

bearer token 인증 (1)
[JAVA] Bearer token Authorization

bearer token 발급 후 사용자정보를 체크할 때 사용한다. public static void userChk (HttpServletRequest request, String token) { Map returnList = new HashMap(); HttpSession session = request.getSession(); try{ URL url = new URL({URL}); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestProperty("Authorization","Bearer " + token); conn.setRequestProperty("Content-Type","application/jso..

Development/JAVA 2021. 8. 22. 23:51
이전 1 다음
이전 다음
링크
최근에 올라온 글
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바