From 138ec563a2b26a65bf98f620699e08c4832eaba5 Mon Sep 17 00:00:00 2001 From: Rucha Deshpande <deshruch@amazon.com> Date: Tue, 17 Nov 2020 15:48:18 -0600 Subject: [PATCH] add debug stsms --- .../org/opengroup/osdu/notification/api/PubsubEndpoint.java | 4 ++++ .../provider/aws/impl/ServiceAccountJwtAwsClientImpl.java | 1 + 2 files changed, 5 insertions(+) diff --git a/notification-core/src/main/java/org/opengroup/osdu/notification/api/PubsubEndpoint.java b/notification-core/src/main/java/org/opengroup/osdu/notification/api/PubsubEndpoint.java index edbce0c44..bfe12ea15 100644 --- a/notification-core/src/main/java/org/opengroup/osdu/notification/api/PubsubEndpoint.java +++ b/notification-core/src/main/java/org/opengroup/osdu/notification/api/PubsubEndpoint.java @@ -154,6 +154,10 @@ public class PubsubEndpoint { } private String querySubscriptionAndUpdateCache(String notificationId) throws Exception { + Map<String,String> hmap = headers.getHeaders(); + String auth_header = hmap.get("authorization"); + System.out.println("Notification token before creating subscription service= "+auth_header); + ISubscriptionService service = subscriptionFactory.create(headers); List<Subscription> subscriptionList = service.query(notificationId); diff --git a/provider/notification-aws/src/main/java/org/opengroup/osdu/notification/provider/aws/impl/ServiceAccountJwtAwsClientImpl.java b/provider/notification-aws/src/main/java/org/opengroup/osdu/notification/provider/aws/impl/ServiceAccountJwtAwsClientImpl.java index 02e2b91e7..7fe6b354a 100644 --- a/provider/notification-aws/src/main/java/org/opengroup/osdu/notification/provider/aws/impl/ServiceAccountJwtAwsClientImpl.java +++ b/provider/notification-aws/src/main/java/org/opengroup/osdu/notification/provider/aws/impl/ServiceAccountJwtAwsClientImpl.java @@ -105,6 +105,7 @@ public class ServiceAccountJwtAwsClientImpl implements IServiceAccountJwtClient @Override public String getIdToken(String s) { String token= sp.getServicePrincipalAccessToken(client_credentials_clientid,client_credentials_secret); + System.out.println("This is the client credentials token = " + token); return token; } -- GitLab