log.Printf("[OAuth] Step 1 SUCCESS - No team org found, using first org, UUID: %s, Name: %s",orgs[0].UUID,orgs[0].Name)
logger.LegacyPrintf("repository.claude_oauth","[OAuth] Step 1 SUCCESS - No team org found, using first org, UUID: %s, Name: %s",orgs[0].UUID,orgs[0].Name)
returnorgs[0].UUID,nil
returnorgs[0].UUID,nil
}
}
...
@@ -103,9 +103,9 @@ func (s *claudeOAuthService) GetAuthorizationCode(ctx context.Context, sessionKe
...
@@ -103,9 +103,9 @@ func (s *claudeOAuthService) GetAuthorizationCode(ctx context.Context, sessionKe
"code_challenge_method":"S256",
"code_challenge_method":"S256",
}
}
log.Printf("[OAuth] Step 2: Getting authorization code from %s",authURL)
logger.LegacyPrintf("repository.claude_oauth","[OAuth] Step 2: Getting authorization code from %s",authURL)
clauses=append(clauses,"(l.message ILIKE $"+n+" OR COALESCE(l.request_id,'') ILIKE $"+n+" OR COALESCE(l.client_request_id,'') ILIKE $"+n+" OR COALESCE(l.extra::text,'') ILIKE $"+n+")")
hasConstraint=true
}
}
return"WHERE "+strings.Join(clauses," AND "),args,hasConstraint