added OAuth2 authentication for REST protocol

Change-Id: I3b8f3943ea043587730870a0b861760a4d6f3aa7
diff --git a/lib/BUCK b/lib/BUCK
index ccc1e15..5ff711f 100644
--- a/lib/BUCK
+++ b/lib/BUCK
@@ -548,6 +548,15 @@
 )
 
 remote_jar (
+  name = 'jersey-security',
+  out = 'oauth2-client-2.25.1.jar',
+  url = 'mvn:org.glassfish.jersey.security:oauth2-client:jar:2.25.1',
+  sha1 = '5081be1cdc45a48ebeada89157cab4711f7bad1b',
+  maven_coords = 'org.glassfish.jersey.security:oauth2-client:jar:NON-OSGI:2.25.1',
+  visibility = [ 'PUBLIC' ],
+)
+
+remote_jar (
   name = 'jersey-common',
   out = 'jersey-common-2.25.1.jar',
   url = 'mvn:org.glassfish.jersey.core:jersey-common:jar:2.25.1',
diff --git a/lib/deps.json b/lib/deps.json
index 7fae453..f1ff1e9 100644
--- a/lib/deps.json
+++ b/lib/deps.json
@@ -155,6 +155,7 @@
     "javax.inject": "mvn:org.glassfish.hk2.external:javax.inject:2.5.0-b32",
     "javax.ws.rs-api": "mvn:javax.ws.rs:javax.ws.rs-api:2.1",
     "jersey-client": "mvn:org.glassfish.jersey.core:jersey-client:2.25.1",
+    "jersey-security": "mvn:org.glassfish.jersey.security:oauth2-client:jar:2.25.1",
     "jersey-common": "mvn:org.glassfish.jersey.core:jersey-common:2.25.1",
     "jersey-container-jetty-http": "mvn:org.glassfish.jersey.containers:jersey-container-jetty-http:2.25.1",
     "jersey-container-servlet": "mvn:org.glassfish.jersey.containers:jersey-container-servlet:2.25.1",
diff --git a/lib/pom.xml b/lib/pom.xml
index 12045a9..3398de1 100644
--- a/lib/pom.xml
+++ b/lib/pom.xml
@@ -223,6 +223,13 @@
                 <artifactId>jersey-client</artifactId>
                 <version>${jersey.version}</version>
             </dependency>
+
+            <dependency>
+                <groupId>org.glassfish.jersey.security</groupId>
+                <artifactId>oauth2-client</artifactId>
+                <version>${jersey.version}</version>
+            </dependency>
+
             <dependency>
                 <groupId>org.glassfish.jersey.containers</groupId>
                 <artifactId>jersey-container-servlet</artifactId>