Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ public Map<String, String> impersonation(
AtlassianHost host = hostFromQuery(installationId, cloudId);
try {
manualAuthorizationService.authorize(host);
AtlassianHostUser hostUser = AtlassianHostUser.builder(host).withUserAccountId(accountId).build();
JiraMyselfResponse myself = fetchJiraMyself(hostUser);
Comment thread
vzakharchenko marked this conversation as resolved.
String label = myself != null ? myself.displayName() : accountId;
return message("Hello from BusinessLogicController. User: " + label);
} catch (Exception e) {
LOG.warn("Impersonation failed", e);
return message("Impersonation failed: " + e.getMessage());
}
AtlassianHostUser hostUser = AtlassianHostUser.builder(host).withUserAccountId(accountId).build();
JiraMyselfResponse myself = fetchJiraMyself(hostUser);
String label = myself != null ? myself.displayName() : accountId;
return message("Hello from BusinessLogicController. User: " + label);
}

private JiraMyselfResponse fetchJiraMyself(AtlassianHostUser user) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ services:

app:
id: ari:cloud:ecosystem::app/cbad754b-3ea4-4759-a6ef-eb575b1a7427
Comment thread
vzakharchenko marked this conversation as resolved.
connect:
key: runtime-bridge-spring-boot-sample-atlaskit
remote: java-service
runtime:
name: nodejs24.x

Expand All @@ -48,7 +45,7 @@ modules:
- key: impersonation-ep
service: java-service
route:
path: /api/impersonation
path: /api
Comment thread
vzakharchenko marked this conversation as resolved.
Comment thread
vzakharchenko marked this conversation as resolved.

resources:
- key: main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ping")
@RequestMapping("/health")
Comment thread
vzakharchenko marked this conversation as resolved.
Comment thread
vzakharchenko marked this conversation as resolved.
public class ContainerHealthEndpoint {

@GetMapping
Expand Down
Loading