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

로그인 #2

Open
4 of 5 tasks
nyeJiiii opened this issue Jul 24, 2023 · 0 comments · May be fixed by #42 or #43
Open
4 of 5 tasks

로그인 #2

nyeJiiii opened this issue Jul 24, 2023 · 0 comments · May be fixed by #42 or #43
Labels
enhancement New feature or request

Comments

@nyeJiiii
Copy link
Collaborator

nyeJiiii commented Jul 24, 2023

# 테이블

CREATE TABLE login_tb
(
    id         INT PRIMARY KEY AUTO_INCREMENT,
    user_id    INT         NOT NULL,
    ip         VARCHAR(50) NOT NULL,
    user_agent VARCHAR(10) NOT NULL,
    login_at   TIMESTAMP,

    FOREIGN KEY (user_id) REFERENCES user_tb(id)
);

# API Rest

/**
 * @페이지명 : 로그인
 * @URL : /login
 * @Method: POST
 */

Headers {
"accessToken": "^@*&#^*#*@&^@비@*&*밀!",
}

Request {
  "email": "[email protected]",
  "password": "123123"
}

Response {
    "success": true,
    "data": {
        "id": 14,
        "username": "최수현",
        "email": "[email protected]",
        "phoneNumber": "01012345678",
        "position": "사원",
        "roles": "일반",
        "joinDate": "2023-07-24"
    }
}

/**
 * @페이지명 : 로그아웃
 * @URL : /logout
 * @Method: GET
 */

# 요구사항정의

  • Spring Security 적용
  • Jwt Token 인증방식 적용
  • Login 성공 후 마지막 로그인 성공 날짜 업데이트 적용
  • Login 성공 후 회원번호, User-agent, Client IP, 시간 등 로그 테이블에 등록 처리
  • 로그인 API 가이드 및 구현 필요
@nyeJiiii nyeJiiii added the enhancement New feature or request label Jul 26, 2023
jinakim8 added a commit that referenced this issue Aug 2, 2023
jinakim8 added a commit that referenced this issue Aug 2, 2023
jinakim8 added a commit that referenced this issue Aug 2, 2023
jinakim8 added a commit that referenced this issue Aug 2, 2023
nyeJiiii added a commit that referenced this issue Aug 2, 2023
@jinakim8 jinakim8 linked a pull request Aug 23, 2023 that will close this issue
@jinakim8 jinakim8 removed a link to a pull request Aug 23, 2023
This was linked to pull requests Aug 23, 2023
@jinakim8 jinakim8 linked a pull request Aug 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant