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; - } }