Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

송하은 5주차 과제 제출 #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

haeunsong
Copy link

Description

  • 클라이언트와 서버 사이에서 세션 로그인 방식이 어떻게 동작하는지, 쿠키와 세션을 중점으로 설명하였습니다.

Important content

Question

Q. 5주차 과제에 올려주셨던 코드를 실행시켜서 postman에 '/api/members/login' 요청 본문에

{
    "loginId":"test2",
    "pwd":"test2"
}

이런식으로 한다면,
세션DB에는 아래와 같은 정보가 저장되는걸까요?

{
  "sessionID": "abc123xyz456",(랜덤문자열)
  "userID": "test2",
  "role": "ROLE_USER",
  "permissions": [],
  "expiryTime": ""
}

Reference

https://youtu.be/tosLBcAX1vk?si=QmkMRs9mS34bSn1G

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1) 사용자 관점에서의 로그인 과정 흐름
2) 서버가 로그인한 사용자를 인식하는 방식
3) 세션 구현 시 보안적으로 고려해야할 부분
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant