From fbbc2c571ead9c8d9a7583df2b309a19f12e58a1 Mon Sep 17 00:00:00 2001 From: mybloom Date: Wed, 8 Jun 2022 10:44:58 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20OauthProvider=20getter=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(ios-h/airbnb#35)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../team4/airbnb/auth/config/OauthProvider.java | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/BE/src/main/java/org/team4/airbnb/auth/config/OauthProvider.java b/BE/src/main/java/org/team4/airbnb/auth/config/OauthProvider.java index d67bd378f..9167c99f2 100644 --- a/BE/src/main/java/org/team4/airbnb/auth/config/OauthProvider.java +++ b/BE/src/main/java/org/team4/airbnb/auth/config/OauthProvider.java @@ -1,10 +1,14 @@ package org.team4.airbnb.auth.config; +import lombok.AllArgsConstructor; import lombok.Builder; +import lombok.Getter; import org.team4.airbnb.auth.config.OauthProperties.Provider; import org.team4.airbnb.auth.config.OauthProperties.User; - +@Getter +@Builder +@AllArgsConstructor public class OauthProvider { private final String clientId; @@ -22,14 +26,4 @@ public static OauthProvider from(User user, Provider provider) { .userInfoUrl(provider.getUserInfoUri()) .build(); } - - @Builder - private OauthProvider(String clientId, String clientSecret, String redirectUrl, String tokenUrl, - String userInfoUrl) { - this.clientId = clientId; - this.clientSecret = clientSecret; - this.redirectUrl = redirectUrl; - this.tokenUrl = tokenUrl; - this.userInfoUrl = userInfoUrl; - } }