Skip to content

Commit

Permalink
feat: OauthProvider getter추가 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mybloom committed Jun 8, 2022
1 parent 2ecf2a7 commit fbbc2c5
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions BE/src/main/java/org/team4/airbnb/auth/config/OauthProvider.java
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
}
}

0 comments on commit fbbc2c5

Please sign in to comment.