forked from codesquad-members-2023/issue-tracker-max
-
Notifications
You must be signed in to change notification settings - Fork 1
/
OauthProperties.java
24 lines (19 loc) · 730 Bytes
/
OauthProperties.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package kr.codesquad.issuetracker.infrastructure.config.oauth;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConstructorBinding;
import lombok.Getter;
@Getter
@ConfigurationProperties("oauth")
public class OauthProperties {
private final String clientId;
private final String secretId;
private final String githubOauthUrl;
private final String githubResourceUrl;
@ConstructorBinding
public OauthProperties(String clientId, String secretId, String githubOauthUrl, String githubResourceUrl) {
this.clientId = clientId;
this.secretId = secretId;
this.githubOauthUrl = githubOauthUrl;
this.githubResourceUrl = githubResourceUrl;
}
}