entity = repository.findUserDataEntityByUserId(userDataEntity.getUserId());
+ if (entity.isEmpty()) throw new BadCredentialsException("Credentials invalid");
+ UserDataEntity archivedEntity = entity.get();
+ // 만약 유저가 존재한다면, 비밀번호를 비교합니다.
+ if (encoder.matches(userDataEntity.getPassword(), archivedEntity.getPassword()))
+ // 만약 비밀번호가 일치한다면, 토큰을 생성하여 반환합니다.
+ return new UserAuthenticationDto(jwtService.generateToken(archivedEntity.getUserId()));
+ // 만약 비밀번호가 일치하지 않는다면, BadCredentialsException을 던집니다.
+ throw new BadCredentialsException("Credentials invalid");
+ }
+}
\ No newline at end of file
diff --git a/src/main/resources/templates/admin_dashboard.html b/src/main/resources/templates/admin_dashboard.html
new file mode 100644
index 0000000..20b3eda
--- /dev/null
+++ b/src/main/resources/templates/admin_dashboard.html
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/download.html b/src/main/resources/templates/download.html
new file mode 100644
index 0000000..a35cece
--- /dev/null
+++ b/src/main/resources/templates/download.html
@@ -0,0 +1,40 @@
+
+
+ 파일 다운로드 페이지
+
+
+
+ <-- 업로드 페이지로
+파일 다운로드 페이지
+REST 요청을 보내 파일 목록을 불러옵니다:
+
+파일 목록을 불러오는 예제에 대해서는 이전 예제 레포지토리를 참고하세요.
+
+
diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html
new file mode 100644
index 0000000..26f5a23
--- /dev/null
+++ b/src/main/resources/templates/index.html
@@ -0,0 +1,6 @@
+
+
+ 로그인
+ 회원가입
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html
new file mode 100644
index 0000000..f1cd1ef
--- /dev/null
+++ b/src/main/resources/templates/login.html
@@ -0,0 +1,9 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/management.html b/src/main/resources/templates/management.html
new file mode 100644
index 0000000..8662488
--- /dev/null
+++ b/src/main/resources/templates/management.html
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/register.html b/src/main/resources/templates/register.html
new file mode 100644
index 0000000..99d2b6d
--- /dev/null
+++ b/src/main/resources/templates/register.html
@@ -0,0 +1,48 @@
+
+
+ 회원가입
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/register_check.html b/src/main/resources/templates/register_check.html
new file mode 100644
index 0000000..6841d9d
--- /dev/null
+++ b/src/main/resources/templates/register_check.html
@@ -0,0 +1,37 @@
+
+
+
+
+ 회원가입 성공
+
+
+
+
+
+ 회원가입에 성공하였습니다. 로그인하여 서비스를 이용해주세요.
+
+
+로그인 페이지로 돌아가기
+
+
+
diff --git a/src/main/resources/templates/request_aws_key.html b/src/main/resources/templates/request_aws_key.html
new file mode 100644
index 0000000..442aa8c
--- /dev/null
+++ b/src/main/resources/templates/request_aws_key.html
@@ -0,0 +1,33 @@
+
+
+ AWS API Key가 등록되지 않았습니다.
+AWS API Key가 등록되지 않았습니다.
+보안을 위해, 해당 프로젝트에서는 S3 API에 접근하기 위해 API 키를 어플리케이션 활성화시 1회 요청합니다.
+API 키는 저장되지 않습니다.
+
+API 키를 만들려면 다음 과정을 따라합니다.
+
+ - AWS IAM 콘솔에
+ 접속합니다.
+
+ - 사용자 생성을 누릅니다.
+ - 중복되지 않는 사용자명을 입력합니다. 해당 프로젝트에서는 s3_user로 생성하십시오.
+ - 직접 정책 연결를 선택하고, AmazonS3FullAccess를 검색합니다. 해당 권한은 발급된 키로 자신의 S3 API의 모든 접근을 허용하겠다는 의미입니다.
+
+ - 사용자 생성을 누릅니다.
+ - AWS IAM 콘솔에서 s3_user을 클릭합니다.
+ - 요약 창에서 푸른식 액세스 키 만들기를 클릭합니다.
+ - AWS 외부에서 실행되는 애플리케이션을 선택하고, 다음을 누릅니다.
+ - 액세스 키 만들기를 누릅니다.
+ - 출력된 액세스 키를 입력합니다. 경고: 한번 발급된 키는 페이지를 나가면 다시 볼 수 없습니다.
+
+
+
+
diff --git a/src/main/resources/templates/service_selection.html b/src/main/resources/templates/service_selection.html
new file mode 100644
index 0000000..f9c0428
--- /dev/null
+++ b/src/main/resources/templates/service_selection.html
@@ -0,0 +1,24 @@
+
+
+
+
+ 서비스 선택
+
+
+서비스를 선택하세요
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/upload.html b/src/main/resources/templates/upload.html
new file mode 100644
index 0000000..5565c4f
--- /dev/null
+++ b/src/main/resources/templates/upload.html
@@ -0,0 +1,22 @@
+
+
+ <-- 다운로드 페이지로
+ 파일 업로드
+파일 업로드 코드를 작성하십시오.
+파일을 업로드하는 예제에 대해서는 이전 예제 레포지토리를 참고하세요.
+
+
+
+
+
+
+
diff --git a/src/main/resources/templates/user_dashboard.html b/src/main/resources/templates/user_dashboard.html
new file mode 100644
index 0000000..fcc8c0c
--- /dev/null
+++ b/src/main/resources/templates/user_dashboard.html
@@ -0,0 +1,23 @@
+
+
+
+ REST 요청을 보내 파일 목록을 불러오고, 다음 li에 다운로드 링크와 함께 삽입하십시오.
+REST로 데이터 목록을 불러오는 예제는 1번 예제 레포지토리를 참고하세요.
+
+
+
+
+
\ No newline at end of file