Skip to content

Commit 9c4fe55

Browse files
committed
Log every time we initiate a new OAuth2 session
1 parent c2fd4cf commit 9c4fe55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/cd/go/authorization/github/executors/GetAuthorizationServerUrlRequestExecutor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public GoPluginApiResponse execute() throws Exception {
5050

5151
AuthorizationServerArgs result = gitHubClientBuilder.authorizationServerArgs(gitHubConfiguration, request.callbackUrl());
5252

53+
LOG.info("[%s] Initiating GitHub OAuth authentication from auth config `{}`", getClass().getSimpleName(), authConfig.getId());
54+
5355
return DefaultGoPluginApiResponse.success(GSON.toJson(Map.of(
5456
"authorization_server_url", result.url(),
5557
"auth_session", Map.of(Constants.AUTH_SESSION_STATE, result.state(), Constants.AUTH_CODE_VERIFIER_ENCODED, result.codeVerifierEncoded())

0 commit comments

Comments
 (0)