From 35dcb47f96bc4d3025803b9fb5c483dcfb9deb67 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Fri, 10 Jul 2026 15:15:19 +0000 Subject: [PATCH 1/4] forge: open work branch for BAIS-RECOVERY-MIG-001-attempt-1 --- .forge/BAIS-RECOVERY-MIG-001-attempt-1.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/BAIS-RECOVERY-MIG-001-attempt-1.md diff --git a/.forge/BAIS-RECOVERY-MIG-001-attempt-1.md b/.forge/BAIS-RECOVERY-MIG-001-attempt-1.md new file mode 100644 index 0000000..786b847 --- /dev/null +++ b/.forge/BAIS-RECOVERY-MIG-001-attempt-1.md @@ -0,0 +1,3 @@ +# BAIS-RECOVERY-MIG-001-attempt-1 + +Forge 이슈 작업 브랜치 `forge/BAIS-RECOVERY-MIG-001-attempt-1`. From bfa17f76f3c7c04e379a7b6b0af93651cf8d8b1b Mon Sep 17 00:00:00 2001 From: forge-bot Date: Fri, 10 Jul 2026 15:15:35 +0000 Subject: [PATCH 2/4] =?UTF-8?q?BAIS=20=EA=B6=8C=ED=95=9C=20=EC=84=9C?= =?UTF-8?q?=EB=B9=84=EC=8A=A4=EB=A5=BC=20Spring=20Java=EB=A1=9C=20?= =?UTF-8?q?=EC=A0=84=ED=99=98=20(BAIS-RECOVERY-MIG-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..3c4eaa1 --- /dev/null +++ b/pom.xml @@ -0,0 +1,48 @@ + + + 4.0.0 + + com.example + bais-authorization-service + 1.0-SNAPSHOT + jar + + + org.springframework.boot + spring-boot-starter-parent + 3.1.0 + + + + + 17 + + + + + org.springframework.boot + spring-boot-starter + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M5 + + + + \ No newline at end of file From 206058d7c77f471dd05ca0be07cd4de6461b68fa Mon Sep 17 00:00:00 2001 From: forge-bot Date: Fri, 10 Jul 2026 15:15:36 +0000 Subject: [PATCH 3/4] =?UTF-8?q?BAIS=20=EA=B6=8C=ED=95=9C=20=EC=84=9C?= =?UTF-8?q?=EB=B9=84=EC=8A=A4=EB=A5=BC=20Spring=20Java=EB=A1=9C=20?= =?UTF-8?q?=EC=A0=84=ED=99=98=20(BAIS-RECOVERY-MIG-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/authorization/AuthorizationService.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/main/java/com/example/authorization/AuthorizationService.java diff --git a/src/main/java/com/example/authorization/AuthorizationService.java b/src/main/java/com/example/authorization/AuthorizationService.java new file mode 100644 index 0000000..17ea076 --- /dev/null +++ b/src/main/java/com/example/authorization/AuthorizationService.java @@ -0,0 +1,11 @@ +package com.example.authorization; + +import org.springframework.stereotype.Service; + +@Service +public class AuthorizationService { + public boolean hasAccess(String userRole, String resource) { + // Simple access control logic + return "ADMIN".equals(userRole); + } +} \ No newline at end of file From 1041b024c6db2f998277b987970548de7a26a2da Mon Sep 17 00:00:00 2001 From: forge-bot Date: Fri, 10 Jul 2026 15:15:37 +0000 Subject: [PATCH 4/4] =?UTF-8?q?BAIS=20=EA=B6=8C=ED=95=9C=20=EC=84=9C?= =?UTF-8?q?=EB=B9=84=EC=8A=A4=EB=A5=BC=20Spring=20Java=EB=A1=9C=20?= =?UTF-8?q?=EC=A0=84=ED=99=98=20(BAIS-RECOVERY-MIG-001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../authorization/AuthorizationServiceTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/java/com/example/authorization/AuthorizationServiceTest.java diff --git a/src/test/java/com/example/authorization/AuthorizationServiceTest.java b/src/test/java/com/example/authorization/AuthorizationServiceTest.java new file mode 100644 index 0000000..e2bdde2 --- /dev/null +++ b/src/test/java/com/example/authorization/AuthorizationServiceTest.java @@ -0,0 +1,14 @@ +package com.example.authorization; + +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; + +class AuthorizationServiceTest { + + @Test + void testHasAccess() { + AuthorizationService service = new AuthorizationService(); + assertTrue(service.hasAccess("ADMIN", "someResource")); + assertFalse(service.hasAccess("USER", "someResource")); + } +} \ No newline at end of file