diff --git a/.env.example b/.env.example index 01068e1..a4fde60 100644 --- a/.env.example +++ b/.env.example @@ -5,10 +5,3 @@ DB_USERNAME= DB_PASSWORD= JWT_SECRET_KEY= - -# ============================= -# PortOne -# ============================= -PORTONE_API_SECRET=V2_API_Secret -PORTONE_STORE_ID=store-ID -PORTONE_CHANNEL_KEY=channel-key- \ No newline at end of file diff --git a/build.gradle b/build.gradle index 3491256..68c9df3 100644 --- a/build.gradle +++ b/build.gradle @@ -48,9 +48,6 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-security' testImplementation 'org.springframework.security:spring-security-test' - // OAuth2 - implementation 'org.springframework.boot:spring-boot-starter-oauth2-client' - implementation 'io.github.openfeign.querydsl:querydsl-jpa:6.10.1' annotationProcessor 'io.github.openfeign.querydsl:querydsl-apt:6.10.1:jakarta' annotationProcessor 'jakarta.annotation:jakarta.annotation-api' diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 31e7935..bea2dbd 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -6,45 +6,16 @@ spring: active: ${SPRING_PROFILES_ACTIVE:local} # .env 또는 환경변수로 override 가능, 기본값 local jpa: open-in-view: false - security: - oauth2: - client: - registration: - google: - client-id: ${GOOGLE_CLIENT_ID} - client-secret: ${GOOGLE_CLIENT_SECRET} - scope: email, profile - kakao: - client-id: ${KAKAO_CLIENT_ID} - client-secret: ${KAKAO_CLIENT_SECRET} - client-authentication-method: client_secret_post - authorization-grant-type: authorization_code - redirect-uri: "{baseUrl}/login/oauth2/code/kakao" - scope: profile_nickname, account_email - provider: - kakao: - authorization-uri: https://kauth.kakao.com/oauth/authorize - token-uri: https://kauth.kakao.com/oauth/token - user-info-uri: https://kapi.kakao.com/v2/user/me - user-name-attribute: id data: redis: host: ${REDIS_HOST:localhost} port: ${REDIS_PORT:6379} -portone: - api-secret: ${PORTONE_API_SECRET} - store-id: ${PORTONE_STORE_ID} - channel-key: ${PORTONE_CHANNEL_KEY} - jwt: secret-key: ${JWT_SECRET_KEY} access-token-validity-time: 1800000 # 30분 (ms) refresh-token-validity-time: 604800000 # 7일 (ms) -oauth2: - redirect-uri: http://localhost:3000/oauth2/callback - management: endpoints: web: diff --git a/src/main/resources/templates/checkout.html b/src/main/resources/templates/checkout.html index 3d1021e..0f570ca 100644 --- a/src/main/resources/templates/checkout.html +++ b/src/main/resources/templates/checkout.html @@ -47,13 +47,13 @@

주문 상품

-

박경화

+

르탄이

주문자를 등록해주세요.