gengar0917 / gengar0917/springSecurity

과제를 진행하며 궁금한 사항들

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

1. [회원탈퇴와 로그아웃에 관한 토큰]
이번 과제의 코드는 로그인에 성공하면 JWT 토큰을 발급해 해당 유저에게 지급하고 해당 토큰의 유효성 검사를 통해 다른 기능들에 제한을 걸어두는 것으로 이해했습니다. 그런데 해당 유저가 로그아웃을 하거나 회원탈퇴를 진행하면 지급된 JWT 토큰을 삭제하는 방식으로 로직을 구현해야 하는지 궁금합니다.

2. [뒤로가기 기능]
보드를 삭제하면 db에서 아예 삭제하도록 기능이 구형되어 있는데, 뒤로가기 기능을 사용하려면 삭제된 데이터를 다시 어떤 방식으로 불러와야 하나요 ?

3. [OneToMany의 단점]
연관관계에 대해 공부하며 일대다 연관관계를 지양해야 한다는 걸 알게 되었습니다. 양방향일 때에도 OneToMany를 지양해야 하는 건가요 ?

4. [프론트와 작동]
프론트랑 어떻게 작동되는지
백에서 토큰을 발급하면 프론트에서 헤더에 토큰을 넣어 저장하고 다시 필요한 정보들을 보내주면 백에서 검사하고 로직을 작동시킨다고 이해했는데 올바른 흐름인지가 궁금합니다. 프론트와 백이 어떤 식으로 영향을 주고 받는지가 궁금합니다.

5. [테스트 코드]
계속해서 포스트맨으로 테스트를 하다보니 번거로운 점들이 많아서 테스트 코드 작성이 중요하다는 말을 들었습니다. 시간을 내서 테스트 코드를 작성 해 보는 것이 좋을까요?

6. [url 지정]
각 Http 메서드 별로 url을 지정할 때
기능 별로 url을 다르게 하는 방법이 있고 (예시)post - ("board/create"), put - ("board/update"))
아예 같은 url을 사용하며 각 메서드 별로 알아서 구분되게 사용하는 방법 중 어떤 방법이 더 많이 쓰이나요 ?

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no source files or tests and contains six broad questions about Spring Security, JWTs, board deletion, entity relationships, frontend integration, testing, and URL design. Start by reviewing the project's relevant authentication, board, entity, API, and test entry points. Done means each question has a project-specific documented answer or an explicit decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, postman, spring
Domain
authentication, backend-api-design, databases, security, testing
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.