Commit 4ad50766 authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

oauth client credentials

parent 87ef11e7
......@@ -155,7 +155,7 @@ public class PubsubEndpoint {
private String querySubscriptionAndUpdateCache(String notificationId) throws Exception {
Map<String,String> hmap = headers.getHeaders();
String auth_header = hmap.get("Authorization");
String auth_header = hmap.get("authorization");
System.out.println("Notification token before creating subscription service= "+auth_header);
ISubscriptionService service = subscriptionFactory.create(headers);
......
......@@ -50,7 +50,7 @@
<dependency>
<groupId>org.opengroup.osdu.core.aws</groupId>
<artifactId>os-core-lib-aws</artifactId>
<version>0.3.14-oauth-feat-deshruch-oauth-changes-SNAPSHOT</version>
<version>0.3.12-SNAPSHOT</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-secretsmanager -->
......
......@@ -129,6 +129,7 @@ public class ServiceAccountJwtAwsClientImpl implements IServiceAccountJwtClient
headers.put("Content-Type", "application/x-www-form-urlencoded");
IHttpClient httpClient = new HttpClient();
String url = tokenUrl+"?grant_type=client_credentials&client_id="+client_credentials_clientid+"&scope="+awsOauthCustomScope;
System.out.println("Token url="+url);
HttpRequest rq = HttpRequest.post().url(url).headers(headers).build();
......
......@@ -44,7 +44,7 @@
<dependency>
<groupId>org.opengroup.osdu.core.aws</groupId>
<artifactId>os-core-lib-aws</artifactId>
<version>0.3.14-oauth-feat-deshruch-oauth-changes-SNAPSHOT</version>
<version>0.3.12-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