Registry / auth / google-auth-library-oauth2-http

google-auth-library-oauth2-http

JSON →
library1.47.0javamavenunverified

Client libraries providing authentication and authorization to enable calling Google APIs using OAuth2.

<dependency> <groupId>com.google.auth</groupId> <artifactId>google-auth-library-oauth2-http</artifactId> <version>1.47.0</version> </dependency>
INSTALL
IMPORT
SIG · GOOGLE-AUTH-LIBRAR
G
google-auth-library-oauth2-http
authjavav1.47.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GoogleCredentials
com.google.auth.oauth2.GoogleCredentials

Creates Google OAuth2 credentials from a service account key file.

import com.google.auth.oauth2.GoogleCredentials; import java.io.FileInputStream; import java.io.IOException; GoogleCredentials credentials = GoogleCredentials.fromStream( new FileInputStream("service-account-key.json")) .createScoped("https://www.googleapis.com/auth/cloud-platform"); // Use credentials to authenticate API calls
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.47.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
20
Resources
google-auth-library-oauth2-http — mvn dependency:get google-auth-library-oauth2-http · libregistry