Skip to content

Commit bb0e409

Browse files
authored
Merge branch 'main' into multi-approvers
2 parents 391a903 + 5e98662 commit bb0e409

34 files changed

+4771
-124
lines changed

.github/workflows/members.json

Lines changed: 105 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
[
22
{"login":"renovate-bot"},
3-
{"login":"release-please"},
3+
{"login":"release-please[bot]"},
4+
{"login":"cloud-java-bot"},
5+
{"login":"gcf-owl-bot[bot]"},
6+
{"login":"dependabot[bot]"},
7+
{"login":"yoshi-code-bot"},
8+
{"login":"yoshi-automation"},
49
{"login":"suztomo"},
510
{"login":"dangazineu"},
611
{"login":"ldetmer"},
@@ -21,5 +26,103 @@
2126
{"login":"surbhigarg92"},
2227
{"login":"alkatrivedi"},
2328
{"login":"olavloite"},
24-
{"login":"harshachinta"}
29+
{"login":"harshachinta"},
30+
{"login":"dazuma"},
31+
{"login":"quartzmo"},
32+
{"login":"codyoss"},
33+
{"login":"BrennaEpp"},
34+
{"login":"tritone"},
35+
{"login":"bisun-google"},
36+
{"login":"linchin"},
37+
{"login":"ohmayr"},
38+
{"login":"parthea"},
39+
{"login":"vchudnov-g"},
40+
{"login":"scotthart"},
41+
{"login":"dbolduc"},
42+
{"login":"cuiy0006"},
43+
{"login":"andrewsg"},
44+
{"login":"BenWhitehead"},
45+
{"login":"danielduhh"},
46+
{"login":"vishwarajanand"},
47+
{"login":"bajajneha27"},
48+
{"login":"JesseLovelace"},
49+
{"login":"cojenco"},
50+
{"login":"ddelgrosso1"},
51+
{"login":"sydney-munro"},
52+
{"login":"marcoa6"},
53+
{"login":"jskeet"},
54+
{"login":"glaforge"},
55+
{"login":"cwest"},
56+
{"login":"engelke"},
57+
{"login":"fhinkel"},
58+
{"login":"briandorsey"},
59+
{"login":"palladius"},
60+
{"login":"callingshotgun"},
61+
{"login":"muncus"},
62+
{"login":"darylducharme"},
63+
{"login":"grayside"},
64+
{"login":"koverholt"},
65+
{"login":"wietsevenema"},
66+
{"login":"ankurkotwal"},
67+
{"login":"ksprashu"},
68+
{"login":"arbrown"},
69+
{"login":"momander"},
70+
{"login":"donmccasland"},
71+
{"login":"glasnt"},
72+
{"login":"rsamborski"},
73+
{"login":"meteatamel"},
74+
{"login":"iennae"},
75+
{"login":"rominirani"},
76+
{"login":"kazunori279"},
77+
{"login":"davidcavazos"},
78+
{"login":"bourgeoisor"},
79+
{"login":"minherz"},
80+
{"login":"vladkol"},
81+
{"login":"kaslin"},
82+
{"login":"LukeSchlangen"},
83+
{"login":"billyjacobson"},
84+
{"login":"msampathkumar"},
85+
{"login":"polong-lin"},
86+
{"login":"villasenor"},
87+
{"login":"alphinside"},
88+
{"login":"telpirion"},
89+
{"login":"ZackAkil"},
90+
{"login":"joeshirey"},
91+
{"login":"m-strzelczyk"},
92+
{"login":"NimJay"},
93+
{"login":"saraford"},
94+
{"login":"kweinmeister"},
95+
{"login":"Mukamik"},
96+
{"login":"holtskinner"},
97+
{"login":"Neenu1995"},
98+
{"login":"Deleplace"},
99+
{"login":"Sita04"},
100+
{"login":"AbiramiSukumaran"},
101+
{"login":"moficodes"},
102+
{"login":"amanda-tarafa"},
103+
{"login":"aliciawilliams"},
104+
{"login":"jeffonelson"},
105+
{"login":"GabeWeiss"},
106+
{"login":"h3xar0n"},
107+
{"login":"katiemn"},
108+
{"login":"iamthuya"},
109+
{"login":"bradmiro"},
110+
{"login":"PicardParis"},
111+
{"login":"gotochkin"},
112+
{"login":"jesuispy"},
113+
{"login":"hyunuk"},
114+
{"login":"rachael-ds"},
115+
{"login":"eaball35"},
116+
{"login":"alokpattani"},
117+
{"login":"dandhlee"},
118+
{"login":"duncantech"},
119+
{"login":"inardini"},
120+
{"login":"lavinigam-gcp"},
121+
{"login":"gericdong"},
122+
{"login":"priyapandeyb"},
123+
{"login":"erwinh85"},
124+
{"login":"CadillacBurgess1"},
125+
{"login":"julieqiu"},
126+
{"login":"coryan"},
127+
{"login":"devoncarew"}
25128
]

.kokoro/presubmit/graalvm-native-a.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ env_vars: {
4444
}
4545

4646
container_properties {
47-
docker_image: "us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_a:1.14.0"
47+
docker_image: "us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_a:1.14.2"
4848
}
4949

.kokoro/presubmit/graalvm-native-b.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ env_vars: {
4444
}
4545

4646
container_properties {
47-
docker_image: "us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_b:1.14.0"
47+
docker_image: "us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_b:1.14.2"
4848
}

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.31.0"
2+
".": "1.32.0"
33
}

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog
22

3+
## [1.32.0](https://github.com/googleapis/google-auth-library-java/compare/v1.31.0...v1.32.0) (2025-02-04)
4+
5+
6+
### Features
7+
8+
* Introduce Client-Side Credential Access Boundary (CAB) functionality ([#1629](https://github.com/googleapis/google-auth-library-java/issues/1629)) ([f481123](https://github.com/googleapis/google-auth-library-java/commit/f4811236018502595987eea8ce5f3fa1c7fdbfaf))
9+
10+
11+
### Bug Fixes
12+
13+
* Handle 404 and non 200 Status Code from MDS Identity Token calls ([#1636](https://github.com/googleapis/google-auth-library-java/issues/1636)) ([152c851](https://github.com/googleapis/google-auth-library-java/commit/152c851bfb90196437f268a6975e66a89985444b))
14+
* Respect token_uri from json in UserCredentials creation. ([#1630](https://github.com/googleapis/google-auth-library-java/issues/1630)) ([f92cc4f](https://github.com/googleapis/google-auth-library-java/commit/f92cc4faf46ab6b0b2b5659fdbbd4c83c1c2f0fe))
15+
16+
17+
### Documentation
18+
19+
* Re-organize the README + Add a section on migrating to GoogleCredentials ([#1644](https://github.com/googleapis/google-auth-library-java/issues/1644)) ([30b26b2](https://github.com/googleapis/google-auth-library-java/commit/30b26b280268530eb46fb85baa1ca808245e8d26))
20+
321
## [1.31.0](https://github.com/googleapis/google-auth-library-java/compare/v1.30.1...v1.31.0) (2025-01-22)
422

523

README.md

Lines changed: 46 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ information, refer to [documentation](https://cloud.google.com/docs/authenticati
2525

2626

2727
* [Quickstart](#quickstart)
28-
28+
* [Importing the Auth Library](#importing-the-auth-library)
29+
* [Preferred: Libraries-Bom](#java-sdk-libraries-bom)
30+
* [Auth-Bom](#google-auth-library-bill-of-materials)
31+
* [Maven](#maven)
32+
* [Gradle](#gradle)
33+
* [Scala](#scala)
34+
* [Migrating from GoogleCredential to GoogleCredentials](#migrating-from-googlecredential-to-googlecredentials)
2935
* [google-auth-library-oauth2-http](#google-auth-library-oauth2-http)
3036
* [Application Default Credentials](#application-default-credentials)
3137
* [ImpersonatedCredentials](#impersonatedcredentials)
@@ -55,10 +61,14 @@ information, refer to [documentation](https://cloud.google.com/docs/authenticati
5561

5662
## Quickstart
5763

58-
### Preferred method: using `java-libraries-bom`
59-
If your use case is to enable authentication for a GAPIC library such as `google-cloud-datastore`,
60-
you may want simply add `libraries-bom`, which automatically imports the auth bom, to your pom.xml
61-
as follows:
64+
### Importing the Auth Library
65+
66+
#### Java SDK Libraries-Bom
67+
If you are trying to authenticate to a client library in the Java SDK (i.e. `google-cloud-datastore`),
68+
you can import add `libraries-bom` to manage the versions of your dependencies. The BOM will pull in the
69+
versions of Auth Library compatible with the client library.
70+
71+
For example, importing with Maven from a pom.xml:
6272

6373
[//]: # ({x-version-update-start:google-auth-library-bom:released})
6474
```xml
@@ -75,15 +85,16 @@ as follows:
7585
</dependencyManagement>
7686
```
7787

78-
Otherwise, if you don't plan using libraries-bom, see the next section on
79-
_Google Auth Library Bill of Materials_.
80-
81-
### Using Maven
88+
If you don't plan using libraries-bom or the client libraries, see the next section on
89+
[Google Auth Library Bill of Materials](#google-auth-library-bill-of-materials) to just import the relevant
90+
Auth modules.
8291

8392
#### Google Auth Library Bill of Materials
84-
In order to ensure transitive dependencies and the modules themselves are aligned with each other,
85-
we rely on the Google Auth Library Bill of Materials. Please add this to your dependency management
86-
section as follows:
93+
Alternatively, you can use the Google Auth Library Bill of Materials to ensure that the Auth modules
94+
and relevant transitive dependencies are compatible.
95+
96+
##### Maven
97+
Add the following your pom.xml file
8798

8899
[//]: # ({x-version-update-start:google-auth-library-bom:released})
89100
```xml
@@ -101,11 +112,9 @@ section as follows:
101112
```
102113
[//]: # ({x-version-update-end})
103114

104-
#### Choosing your implementation
105-
106-
If you are using Maven, add this to your pom.xml file (notice that you can replace
107-
`google-auth-library-oauth2-http` with any of `google-auth-library-credentials` and
108-
`google-auth-library-appengine`, depending on your application needs):
115+
In the `<dependency>` section, you can specify any of the Auth modules that are needed.
116+
For example, replace `google-auth-library-oauth2-http` below with any of `google-auth-library-credentials`
117+
and `google-auth-library-appengine`, depending on your application needs):
109118

110119
```xml
111120
<dependency>
@@ -116,8 +125,8 @@ If you are using Maven, add this to your pom.xml file (notice that you can repla
116125
</dependency>
117126
```
118127

119-
### Using Gradle
120-
If you are using Gradle, add this to your dependencies
128+
##### Gradle
129+
Add the following to your build.gradle file and specify any modules needed.
121130

122131
[//]: # ({x-version-update-start:google-auth-library-bom:released})
123132
```Groovy
@@ -131,10 +140,11 @@ dependencies {
131140
```
132141
[//]: # ({x-version-update-end})
133142

134-
Unfortunately, SBT [cannot](https://github.com/sbt/sbt/issues/4531) manage dependencies via Maven
135-
Bills of Materials. Therefore, you will have to add the submodule directly. Make sure the module
136-
versions are aligned in case you are using more than one authentication module in order to prevent
137-
transitive dependency conflicts.
143+
##### Scala
144+
Unfortunately, SBT [cannot](https://github.com/sbt/sbt/issues/4531) manage dependencies via Maven Bills of Materials. You will have to
145+
add the submodule directly. Make sure the module versions are aligned in case you are using more than
146+
one authentication module in order to prevent transitive dependency conflicts.
147+
138148
If you are using SBT, add this to your dependencies
139149

140150
[//]: # ({x-version-update-start:google-auth-library-oauth2-http:released})
@@ -144,6 +154,19 @@ libraryDependencies += "com.google.auth" % "google-auth-library-oauth2-http" % "
144154
```
145155
[//]: # ({x-version-update-end})
146156

157+
### Migrating from GoogleCredential to GoogleCredentials
158+
[GoogleCredential](https://cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.auth.oauth2.GoogleCredential)
159+
from google-api-java-client is deprecated and GoogleCredentials is the recommended replacement.
160+
161+
We recommend users to instantiate GoogleCredentials with [Application Default Credentials (ADC)](#application-default-credentials):
162+
`GoogleCredentials credentials = GoogleCredentials.getApplicationDefault();`
163+
164+
For [Google Api Client Library](https://cloud.google.com/apis/docs/client-libraries-explained#google-api-client-libraries) users, please refer to this
165+
[guide](https://developers.google.com/api-client-library/java/google-api-java-client/requests) for a example to instantiate a library with GoogleCredentials.
166+
167+
For [Cloud Client Libraries](https://cloud.google.com/apis/docs/client-libraries-explained#cloud-client-libraries), the library will follow ADC to create a
168+
default GoogleCredential. Users do not need to manually create any Credentials or pass it into the library.
169+
147170
## google-auth-library-oauth2-http
148171

149172
### Application Default Credentials

appengine/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.google.auth</groupId>
77
<artifactId>google-auth-library-parent</artifactId>
8-
<version>1.31.1-SNAPSHOT</version><!-- {x-version-update:google-auth-library-parent:current} -->
8+
<version>1.32.1-SNAPSHOT</version><!-- {x-version-update:google-auth-library-parent:current} -->
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.google.auth</groupId>
55
<artifactId>google-auth-library-bom</artifactId>
6-
<version>1.31.1-SNAPSHOT</version><!-- {x-version-update:google-auth-library-bom:current} -->
6+
<version>1.32.1-SNAPSHOT</version><!-- {x-version-update:google-auth-library-bom:current} -->
77
<packaging>pom</packaging>
88
<name>Google Auth Library for Java BOM</name>
99
<description>

0 commit comments

Comments
 (0)