Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] OAuth refactor #142

Merged
merged 2 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
style: λ³€μˆ˜ 이름 μˆ˜μ •
  • Loading branch information
23Yong committed Aug 11, 2023
commit 2bd29ee206057c7402cb2c4d93048da50b50addc
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ public class OauthProperties {
private final String clientId;
private final String secretId;
private final String githubOauthUrl;
private final String githubOpenApiUrl;
private final String githubResourceUrl;

@ConstructorBinding
public OauthProperties(String clientId, String secretId, String githubOauthUrl, String githubOpenApiUrl) {
public OauthProperties(String clientId, String secretId, String githubOauthUrl, String githubResourceUrl) {
this.clientId = clientId;
this.secretId = secretId;
this.githubOauthUrl = githubOauthUrl;
this.githubOpenApiUrl = githubOpenApiUrl;
this.githubResourceUrl = githubResourceUrl;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private WebClient buildGithubLoginClient(OauthProperties oauthProperties, WebCli

private WebClient buildGithubOpenApiClient(OauthProperties oauthProperties, WebClient webClient) {
return webClient.mutate()
.baseUrl(oauthProperties.getGithubOpenApiUrl())
.baseUrl(oauthProperties.getGithubResourceUrl())
.defaultHeader(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON_VALUE)
.build();
}
Expand Down