Commit 8360d0d5 authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

using test os-ore-lib

parent 9fbb6227
......@@ -154,6 +154,8 @@ public class PubsubEndpoint {
}
private String querySubscriptionAndUpdateCache(String notificationId) throws Exception {
Map<String,String> hmap = headers.getHeaders();
ISubscriptionService service = subscriptionFactory.create(headers);
List<Subscription> subscriptionList = service.query(notificationId);
......
......@@ -50,7 +50,7 @@
<dependency>
<groupId>org.opengroup.osdu.core.aws</groupId>
<artifactId>os-core-lib-aws</artifactId>
<version>0.3.12-SNAPSHOT</version>
<version>0.3.13-feat-deshruch-oauth-changes-SNAPSHOT</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-secretsmanager -->
......
......@@ -108,7 +108,8 @@ public class ServiceAccountJwtAwsClientImpl implements IServiceAccountJwtClient
Parameter paramsResult = paramResult.getParameter();
client_credentials_clientid = paramsResult.getValue();
client_credentials_secret = getSecret(client_secret_secretName,amazonRegion,client_secret_key);
String token= getServicePrincipalCredentials();
System.out.println(token);
}
}
......@@ -116,6 +117,8 @@ public class ServiceAccountJwtAwsClientImpl implements IServiceAccountJwtClient
public String getIdToken(String s) {
String token= getServicePrincipalCredentials();
System.out.println("Printing the client credentials token generated");
System.out.println(token);
return token;
}
......@@ -139,6 +142,7 @@ public class ServiceAccountJwtAwsClientImpl implements IServiceAccountJwtClient
AccessToken accessToken = this.getResult(result, AccessToken.class);
token = accessToken.getAccess_token();
}catch(Exception e)
{
System.out.println("Could not parse AccessToken result to get access_token");
......
......@@ -44,7 +44,7 @@
<dependency>
<groupId>org.opengroup.osdu.core.aws</groupId>
<artifactId>os-core-lib-aws</artifactId>
<version>0.3.12-SNAPSHOT</version>
<version>0.3.13-feat-deshruch-oauth-changes-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment