diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml deleted file mode 100644 index dc05a727..00000000 --- a/.github/.OwlBot.lock.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 2024 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc -# created: 2024-01-22T14:14:20.913785597Z diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml deleted file mode 100644 index 5d9a9d8b..00000000 --- a/.github/.OwlBot.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -docker: - image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9f70bfaf..d2878f65 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -4,15 +4,9 @@ # For syntax help see: # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax -# The @googleapis/googleapis-auth is the default owner for changes in this repo -* @googleapis/yoshi-java @googleapis/googleapis-auth - -# for handwritten libraries, keep codeowner_team in .repo-metadata.json as owner -**/*.java @googleapis/googleapis-auth +# The @googleapis/cloud-java-team-teamsync is the default owner for changes in this repo +* @googleapis/cloud-java-team-teamsync @googleapis/googleapis-auth # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers - -# Generated snippets should not be owned by samples reviewers -samples/snippets/generated/ @googleapis/yoshi-java diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml deleted file mode 100644 index c644a24e..00000000 --- a/.github/generated-files-bot.yml +++ /dev/null @@ -1,12 +0,0 @@ -externalManifests: -- type: json - file: 'synth.metadata' - jsonpath: '$.generatedFiles[*]' -- type: json - file: '.github/readme/synth.metadata/synth.metadata' - jsonpath: '$.generatedFiles[*]' -ignoreAuthors: -- 'renovate-bot' -- 'yoshi-automation' -- 'release-please[bot]' -- 'gcf-owl-bot[bot]' diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 7d58dc08..f379ec62 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -62,4 +62,4 @@ permissionRules: - team: yoshi-java permission: push - team: googleapis-auth - permission: push + permission: admin diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index f5fc7d51..59f00b8e 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/.github/workflows/renovate_config_check.yaml b/.github/workflows/renovate_config_check.yaml index 87d8eb2b..7c5ec786 100644 --- a/.github/workflows/renovate_config_check.yaml +++ b/.github/workflows/renovate_config_check.yaml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '20' diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml index 10d252d7..03b29395 100644 --- a/.github/workflows/samples.yaml +++ b/.github/workflows/samples.yaml @@ -20,8 +20,8 @@ jobs: checkstyle: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: 8 diff --git a/CHANGELOG.md b/CHANGELOG.md index f8582056..c5ea4b3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.37.0](https://github.com/googleapis/google-oauth-java-client/compare/v1.36.0...v1.37.0) (2024-12-11) + + +### Bug Fixes + +* **docs:** Javadoc code comments to render correctly in reference docs ([ab4d5e7](https://github.com/googleapis/google-oauth-java-client/commit/ab4d5e7dae926b5d95ddc3021a82883a0f24415d)) + ## [1.36.0](https://github.com/googleapis/google-oauth-java-client/compare/v1.35.0...v1.36.0) (2024-05-10) diff --git a/codecov.yaml b/codecov.yaml deleted file mode 100644 index 5724ea94..00000000 --- a/codecov.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -codecov: - ci: - - source.cloud.google.com diff --git a/google-oauth-client-appengine/pom.xml b/google-oauth-client-appengine/pom.xml index f883457c..ec8c2a82 100644 --- a/google-oauth-client-appengine/pom.xml +++ b/google-oauth-client-appengine/pom.xml @@ -4,7 +4,7 @@ com.google.oauth-client google-oauth-client-parent - 1.36.0 + 1.37.0 ../pom.xml google-oauth-client-appengine diff --git a/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/AbstractAppEngineAuthorizationCodeCallbackServlet.java b/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/AbstractAppEngineAuthorizationCodeCallbackServlet.java index 58776e3f..06f15039 100644 --- a/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/AbstractAppEngineAuthorizationCodeCallbackServlet.java +++ b/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/AbstractAppEngineAuthorizationCodeCallbackServlet.java @@ -43,7 +43,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * public class ServletCallbackSample extends AbstractAppEngineAuthorizationCodeCallbackServlet {
  *
  * @Override
@@ -77,7 +77,7 @@
  * "https://server.example.com/authorize").setCredentialStore(new AppEngineCredentialStore())
  * .build();
  * }
- * 
+ * }
* * @since 1.7 * @author Yaniv Inbar diff --git a/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/AbstractAppEngineAuthorizationCodeServlet.java b/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/AbstractAppEngineAuthorizationCodeServlet.java index 5153f282..df313aca 100644 --- a/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/AbstractAppEngineAuthorizationCodeServlet.java +++ b/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/AbstractAppEngineAuthorizationCodeServlet.java @@ -43,7 +43,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * public class ServletSample extends AbstractAppEngineAuthorizationCodeServlet {
  *
  * @Override
@@ -71,7 +71,7 @@
  * .build();
  * }
  * }
- * 
+ * }
* * @since 1.7 * @author Yaniv Inbar diff --git a/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/AppEngineCredentialStore.java b/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/AppEngineCredentialStore.java index 05a9d547..a09e9266 100644 --- a/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/AppEngineCredentialStore.java +++ b/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/AppEngineCredentialStore.java @@ -84,14 +84,14 @@ public boolean load(String userId, Credential credential) { * *

Sample usage: * - *

+   * 
{@code
    * public static AppEngineDataStore migrate(AppEngineCredentialStore credentialStore)
    * throws IOException {
    * AppEngineDataStore dataStore = new AppEngineDataStore();
    * credentialStore.migrateTo(dataStore);
    * return dataStore;
    * }
-   * 
+ * }
* * @param dataStoreFactory App Engine data store factory * @since 1.16 diff --git a/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/jakarta/AbstractAppEngineAuthorizationCodeCallbackServlet.java b/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/jakarta/AbstractAppEngineAuthorizationCodeCallbackServlet.java index d49bcd9b..07abe863 100644 --- a/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/jakarta/AbstractAppEngineAuthorizationCodeCallbackServlet.java +++ b/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/jakarta/AbstractAppEngineAuthorizationCodeCallbackServlet.java @@ -43,7 +43,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * public class ServletCallbackSample extends AbstractAppEngineAuthorizationCodeCallbackServlet {
  *
  * @Override
@@ -77,7 +77,7 @@
  * "https://server.example.com/authorize").setCredentialStore(new AppEngineCredentialStore())
  * .build();
  * }
- * 
+ * }
* * @since 1.36.0 */ diff --git a/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/jakarta/AbstractAppEngineAuthorizationCodeServlet.java b/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/jakarta/AbstractAppEngineAuthorizationCodeServlet.java index 2f334f72..667505cc 100644 --- a/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/jakarta/AbstractAppEngineAuthorizationCodeServlet.java +++ b/google-oauth-client-appengine/src/main/java/com/google/api/client/extensions/appengine/auth/oauth2/jakarta/AbstractAppEngineAuthorizationCodeServlet.java @@ -43,7 +43,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * public class ServletSample extends AbstractAppEngineAuthorizationCodeServlet {
  *
  * @Override
@@ -71,7 +71,7 @@
  * .build();
  * }
  * }
- * 
+ * }
* * @since 1.36.0 */ diff --git a/google-oauth-client-assembly/pom.xml b/google-oauth-client-assembly/pom.xml index d7ddd2d9..67c0665a 100644 --- a/google-oauth-client-assembly/pom.xml +++ b/google-oauth-client-assembly/pom.xml @@ -4,7 +4,7 @@ com.google.oauth-client google-oauth-client-parent - 1.36.0 + 1.37.0 ../pom.xml com.google.oauth-client diff --git a/google-oauth-client-bom/pom.xml b/google-oauth-client-bom/pom.xml index b790e33c..c960fa87 100644 --- a/google-oauth-client-bom/pom.xml +++ b/google-oauth-client-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.oauth-client google-oauth-client-bom - 1.36.0 + 1.37.0 pom Google OAuth Client Library for Java BOM @@ -63,27 +63,27 @@ com.google.oauth-client google-oauth-client - 1.36.0 + 1.37.0 com.google.oauth-client google-oauth-client-appengine - 1.36.0 + 1.37.0 com.google.oauth-client google-oauth-client-java6 - 1.36.0 + 1.37.0 com.google.oauth-client google-oauth-client-jetty - 1.36.0 + 1.37.0 com.google.oauth-client google-oauth-client-servlet - 1.36.0 + 1.37.0 diff --git a/google-oauth-client-java6/pom.xml b/google-oauth-client-java6/pom.xml index d4eb161b..618a5058 100644 --- a/google-oauth-client-java6/pom.xml +++ b/google-oauth-client-java6/pom.xml @@ -4,7 +4,7 @@ com.google.oauth-client google-oauth-client-parent - 1.36.0 + 1.37.0 ../pom.xml google-oauth-client-java6 diff --git a/google-oauth-client-java6/src/main/java/com/google/api/client/extensions/java6/auth/oauth2/FileCredentialStore.java b/google-oauth-client-java6/src/main/java/com/google/api/client/extensions/java6/auth/oauth2/FileCredentialStore.java index 66d22efa..429c4536 100644 --- a/google-oauth-client-java6/src/main/java/com/google/api/client/extensions/java6/auth/oauth2/FileCredentialStore.java +++ b/google-oauth-client-java6/src/main/java/com/google/api/client/extensions/java6/auth/oauth2/FileCredentialStore.java @@ -174,14 +174,14 @@ private void save() throws IOException { * *

Sample usage: * - *

+   * 
{@code
    * public static FileDataStore migrate(FileCredentialStore credentialStore, File dataDirectory)
    * throws IOException {
    * FileDataStore dataStore = new FileDataStore(dataDirectory);
    * credentialStore.migrateTo(dataStore);
    * return dataStore;
    * }
-   * 
+ * }
* * @param dataStoreFactory file data store factory * @throws IOException diff --git a/google-oauth-client-jetty/pom.xml b/google-oauth-client-jetty/pom.xml index 16a5acde..f7a1eda7 100644 --- a/google-oauth-client-jetty/pom.xml +++ b/google-oauth-client-jetty/pom.xml @@ -4,7 +4,7 @@ com.google.oauth-client google-oauth-client-parent - 1.36.0 + 1.37.0 ../pom.xml google-oauth-client-jetty diff --git a/google-oauth-client-servlet/pom.xml b/google-oauth-client-servlet/pom.xml index 1009893f..e1a24eb5 100644 --- a/google-oauth-client-servlet/pom.xml +++ b/google-oauth-client-servlet/pom.xml @@ -4,7 +4,7 @@ com.google.oauth-client google-oauth-client-parent - 1.36.0 + 1.37.0 ../pom.xml google-oauth-client-servlet diff --git a/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/AbstractAuthorizationCodeCallbackServlet.java b/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/AbstractAuthorizationCodeCallbackServlet.java index e6a30532..bb37281f 100644 --- a/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/AbstractAuthorizationCodeCallbackServlet.java +++ b/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/AbstractAuthorizationCodeCallbackServlet.java @@ -40,7 +40,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * public class ServletCallbackSample extends AbstractAuthorizationCodeCallbackServlet {
  *
  * @Override
@@ -81,7 +81,7 @@
  * // return user ID
  * }
  * }
- * 
+ * }
* * @since 1.7 * @author Yaniv Inbar diff --git a/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/AbstractAuthorizationCodeServlet.java b/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/AbstractAuthorizationCodeServlet.java index ff760b9c..1784b639 100644 --- a/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/AbstractAuthorizationCodeServlet.java +++ b/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/AbstractAuthorizationCodeServlet.java @@ -49,7 +49,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * public class ServletSample extends AbstractAuthorizationCodeServlet {
  *
  * @Override
@@ -83,7 +83,7 @@
  * // return user ID
  * }
  * }
- * 
+ * }
* * @since 1.7 * @author Yaniv Inbar diff --git a/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/jakarta/AbstractAuthorizationCodeCallbackServlet.java b/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/jakarta/AbstractAuthorizationCodeCallbackServlet.java index 65f901bd..30ebb5cd 100644 --- a/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/jakarta/AbstractAuthorizationCodeCallbackServlet.java +++ b/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/jakarta/AbstractAuthorizationCodeCallbackServlet.java @@ -40,7 +40,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * public class ServletCallbackSample extends AbstractAuthorizationCodeCallbackServlet {
  *
  * @Override
@@ -81,7 +81,7 @@
  * // return user ID
  * }
  * }
- * 
+ * }
* * @since 1.36.0 */ diff --git a/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/jakarta/AbstractAuthorizationCodeServlet.java b/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/jakarta/AbstractAuthorizationCodeServlet.java index 64e20869..af3b2fbd 100644 --- a/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/jakarta/AbstractAuthorizationCodeServlet.java +++ b/google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/servlet/auth/oauth2/jakarta/AbstractAuthorizationCodeServlet.java @@ -49,7 +49,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * public class ServletSample extends AbstractAuthorizationCodeServlet {
  *
  * @Override
@@ -83,7 +83,7 @@
  * // return user ID
  * }
  * }
- * 
+ * }
* * @since 1.36.0 */ diff --git a/google-oauth-client/pom.xml b/google-oauth-client/pom.xml index 750d9cdc..6d4d4a57 100644 --- a/google-oauth-client/pom.xml +++ b/google-oauth-client/pom.xml @@ -4,7 +4,7 @@ com.google.oauth-client google-oauth-client-parent - 1.36.0 + 1.37.0 ../pom.xml google-oauth-client diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth/OAuthParameters.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth/OAuthParameters.java index 9c57274b..4da77aea 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth/OAuthParameters.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth/OAuthParameters.java @@ -41,13 +41,13 @@ * *

Sample usage, taking advantage that this class implements {@link HttpRequestInitializer}: * - *

+ * 
{@code
  * public static HttpRequestFactory createRequestFactory(HttpTransport transport) {
  * OAuthParameters parameters = new OAuthParameters();
  * // ...
  * return transport.createRequestFactory(parameters);
  * }
- * 
+ * }
* *

If you have a custom request initializer, take a look at the sample usage for {@link * HttpExecuteInterceptor}, which this class also implements. diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeFlow.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeFlow.java index 4b4944ff..722a3e15 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeFlow.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeFlow.java @@ -174,7 +174,7 @@ protected AuthorizationCodeFlow(Builder builder) { * the {@link #getAuthorizationServerEncodedUrl()}, {@link #getClientId()}, and {@link * #getScopes()}. Sample usage: * - *

+   * 
{@code
    * private AuthorizationCodeFlow flow;
    *
    * public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
@@ -182,7 +182,7 @@ protected AuthorizationCodeFlow(Builder builder) {
    * .setRedirectUri("https://client.example.com/rd").build();
    * response.sendRedirect(url);
    * }
-   * 
+ * }
*/ public AuthorizationCodeRequestUrl newAuthorizationUrl() { AuthorizationCodeRequestUrl url = diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeRequestUrl.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeRequestUrl.java index 15e8b51c..87d18c8d 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeRequestUrl.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeRequestUrl.java @@ -31,14 +31,14 @@ * *

Sample usage for a web application: * - *

+ * 
{@code
  * public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
  * String url =
  * new AuthorizationCodeRequestUrl("https://server.example.com/authorize", "s6BhdRkqt3")
  * .setState("xyz").setRedirectUri("https://client.example.com/rd").build();
  * response.sendRedirect(url);
  * }
- * 
+ * }
* *

Implementation is not thread-safe. * diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeResponseUrl.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeResponseUrl.java index 6f85e8ba..f66c773a 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeResponseUrl.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeResponseUrl.java @@ -27,7 +27,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
  * StringBuffer fullUrlBuf = request.getRequestURL();
  * if (request.getQueryString() != null) {
@@ -42,7 +42,7 @@
  * // request access token using authResponse.getCode()...
  * }
  * }
- * 
+ * }
* *

Implementation is not thread-safe. * diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeTokenRequest.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeTokenRequest.java index b2c77cad..f2676c28 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeTokenRequest.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationCodeTokenRequest.java @@ -34,7 +34,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * static void requestAccessToken() throws IOException {
  * try {
  * TokenResponse response =
@@ -58,7 +58,7 @@
  * }
  * }
  * }
- * 
+ * }
* *

Some OAuth 2.0 providers don't support {@link BasicAuthentication} but instead support {@link * ClientParametersAuthentication}. In the above sample code, simply replace the class name and it diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationRequestUrl.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationRequestUrl.java index 819ca8bb..45fd1f23 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationRequestUrl.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/AuthorizationRequestUrl.java @@ -27,14 +27,14 @@ * *

Sample usage for a web application: * - *

+ * 
{@code
  * public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
  * String url = new AuthorizationRequestUrl(
  * "https://server.example.com/authorize", "s6BhdRkqt3", Arrays.asList("code")).setState("xyz")
  * .setRedirectUri("https://client.example.com/rd").build();
  * response.sendRedirect(url);
  * }
- * 
+ * }
* *

Implementation is not thread-safe. * diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/BrowserClientRequestUrl.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/BrowserClientRequestUrl.java index 84ac6636..5147bfa9 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/BrowserClientRequestUrl.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/BrowserClientRequestUrl.java @@ -27,14 +27,14 @@ * *

Sample usage for a web application: * - *

+ * 
{@code
  * public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
  * String url = new BrowserClientRequestUrl(
  * "https://server.example.com/authorize", "s6BhdRkqt3").setState("xyz")
  * .setRedirectUri("https://client.example.com/cb").build();
  * response.sendRedirect(url);
  * }
- * 
+ * }
* *

Implementation is not thread-safe. * diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/ClientCredentialsTokenRequest.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/ClientCredentialsTokenRequest.java index 4af05c27..3cda14f3 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/ClientCredentialsTokenRequest.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/ClientCredentialsTokenRequest.java @@ -32,7 +32,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * static void requestAccessToken() throws IOException {
  * try {
  * TokenResponse response =
@@ -56,7 +56,7 @@
  * }
  * }
  * }
- * 
+ * }
* *

Some OAuth 2.0 providers don't support {@link BasicAuthentication} but instead support {@link * ClientParametersAuthentication}. In the above sample code, simply replace the class name and it diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/ClientParametersAuthentication.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/ClientParametersAuthentication.java index 13e88fcd..17fca49d 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/ClientParametersAuthentication.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/ClientParametersAuthentication.java @@ -33,7 +33,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * static void requestAccessToken() throws IOException {
  * try {
  * TokenResponse response = new AuthorizationCodeTokenRequest(new NetHttpTransport(),
@@ -56,7 +56,7 @@
  * }
  * }
  * }
- * 
+ * }
* *

Implementation is immutable and thread-safe. * diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java index ce7ec786..fdeb742f 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java @@ -43,7 +43,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * public static Credential createCredentialWithAccessTokenOnly(
  * HttpTransport transport, JsonFactory jsonFactory, TokenResponse tokenResponse) {
  * return new Credential(BearerToken.authorizationHeaderAccessMethod()).setFromTokenResponse(
@@ -61,7 +61,7 @@
  * .build()
  * .setFromTokenResponse(tokenResponse);
  * }
- * 
+ * }
* *

If you need to persist the access token in a data store, use {@link DataStoreFactory} and * {@link Builder#addRefreshListener(CredentialRefreshListener)} with {@link diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/DataStoreCredentialRefreshListener.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/DataStoreCredentialRefreshListener.java index 1ed8f911..e4a9b54a 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/DataStoreCredentialRefreshListener.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/DataStoreCredentialRefreshListener.java @@ -28,14 +28,14 @@ *

It needs to be added as a refresh listener using {@link * Credential.Builder#addRefreshListener}. Sample usage: * - *

+ * 
{@code
  * static void addDataStoreCredentialRefreshListener(
  * Credential.Builder credentialBuilder, String userId, DataStoreFactory dataStoreFactory)
  * throws IOException {
  * credentialBuilder.addRefreshListener(
  * new DataStoreCredentialRefreshListener(userId, dataStoreFactory));
  * }
- * 
+ * }
* * @since 1.6 * @author Yaniv Inbar diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/PasswordTokenRequest.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/PasswordTokenRequest.java index 313b17e1..45e16d7a 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/PasswordTokenRequest.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/PasswordTokenRequest.java @@ -35,7 +35,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * static void requestAccessToken() throws IOException {
  * try {
  * TokenResponse response =
@@ -59,7 +59,7 @@
  * }
  * }
  * }
- * 
+ * }
* *

Some OAuth 2.0 providers don't support {@link BasicAuthentication} but instead support {@link * ClientParametersAuthentication}. In the above sample code, simply replace the class name and it diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/RefreshTokenRequest.java b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/RefreshTokenRequest.java index e07fd0ef..6097cd63 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/RefreshTokenRequest.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/RefreshTokenRequest.java @@ -34,7 +34,7 @@ * *

Sample usage: * - *

+ * 
{@code
  * static void refreshAccessToken() throws IOException {
  * try {
  * TokenResponse response =
@@ -57,7 +57,7 @@
  * }
  * }
  * }
- * 
+ * }
* *

Some OAuth 2.0 providers don't support {@link BasicAuthentication} but instead support {@link * ClientParametersAuthentication}. In the above sample code, simply replace the class name and it diff --git a/google-oauth-client/src/main/java/com/google/api/client/auth/openidconnect/IdTokenResponse.java b/google-oauth-client/src/main/java/com/google/api/client/auth/openidconnect/IdTokenResponse.java index 94feabb1..59c597df 100644 --- a/google-oauth-client/src/main/java/com/google/api/client/auth/openidconnect/IdTokenResponse.java +++ b/google-oauth-client/src/main/java/com/google/api/client/auth/openidconnect/IdTokenResponse.java @@ -32,12 +32,12 @@ * *

Implementation is not thread-safe. Sample usage: * - *

+ * 
{@code
  * static JsonWebSignature executeIdToken(TokenRequest tokenRequest) throws IOException {
  * IdTokenResponse idTokenResponse = IdTokenResponse.execute(tokenRequest);
  * return idTokenResponse.parseIdToken();
  * }
- * 
+ * }
* * @since 1.7 * @author Yaniv Inbar diff --git a/owlbot.py b/owlbot.py deleted file mode 100644 index b799eeb7..00000000 --- a/owlbot.py +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool as s -from synthtool.languages import java - - -for library in s.get_staging_dirs(): - # put any special-case replacements here - s.move(library) - -s.remove_staging_dirs() -java.common_templates( - excludes=[ - "README.md", - "java.header", - "checkstyle.xml", - "renovate.json", - "license-checks.xml", - ".github/workflows/ci.yaml", - ".kokoro/requirements.in", - ".kokoro/requirements.txt" - ] -) diff --git a/pom.xml b/pom.xml index eec231e3..82f9dc1e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.google.oauth-client google-oauth-client-parent - 1.36.0 + 1.37.0 pom Parent for the Google OAuth Client Library for Java Google OAuth Client Library for Java diff --git a/samples/dailymotion-cmdline-sample/pom.xml b/samples/dailymotion-cmdline-sample/pom.xml index 4d1851cc..e1bb5830 100644 --- a/samples/dailymotion-cmdline-sample/pom.xml +++ b/samples/dailymotion-cmdline-sample/pom.xml @@ -4,7 +4,7 @@ com.google.oauth-client google-oauth-client-parent - 1.36.0 + 1.37.0 ../../pom.xml dailymotion-simple-cmdline-sample diff --git a/samples/keycloak-pkce-cmdline-sample/pom.xml b/samples/keycloak-pkce-cmdline-sample/pom.xml index 06edf4bd..983ca622 100644 --- a/samples/keycloak-pkce-cmdline-sample/pom.xml +++ b/samples/keycloak-pkce-cmdline-sample/pom.xml @@ -4,7 +4,7 @@ com.google.oauth-client google-oauth-client-parent - 1.36.0 + 1.37.0 ../../pom.xml keycloak-pkce-cmdline-sample diff --git a/synth.metadata b/synth.metadata deleted file mode 100644 index 6be039a2..00000000 --- a/synth.metadata +++ /dev/null @@ -1,90 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/google-oauth-java-client.git", - "sha": "7c2a436607011e3f4f4631037df4c37538ca692b" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "396d9b84a1e93880f5bf88b59ecd38a0a6dffc5e" - } - } - ], - "generatedFiles": [ - ".github/CODEOWNERS", - ".github/ISSUE_TEMPLATE/bug_report.md", - ".github/ISSUE_TEMPLATE/feature_request.md", - ".github/ISSUE_TEMPLATE/support_request.md", - ".github/PULL_REQUEST_TEMPLATE.md", - ".github/blunderbuss.yml", - ".github/generated-files-bot.yml", - ".github/release-please.yml", - ".github/release-trigger.yml", - ".github/snippet-bot.yml", - ".github/sync-repo-settings.yaml", - ".github/trusted-contribution.yml", - ".github/workflows/approve-readme.yaml", - ".github/workflows/auto-release.yaml", - ".github/workflows/samples.yaml", - ".kokoro/build.bat", - ".kokoro/build.sh", - ".kokoro/coerce_logs.sh", - ".kokoro/common.cfg", - ".kokoro/common.sh", - ".kokoro/continuous/common.cfg", - ".kokoro/continuous/java8.cfg", - ".kokoro/dependencies.sh", - ".kokoro/nightly/common.cfg", - ".kokoro/nightly/integration.cfg", - ".kokoro/nightly/java11.cfg", - ".kokoro/nightly/java7.cfg", - ".kokoro/nightly/java8-osx.cfg", - ".kokoro/nightly/java8-win.cfg", - ".kokoro/nightly/java8.cfg", - ".kokoro/nightly/samples.cfg", - ".kokoro/populate-secrets.sh", - ".kokoro/presubmit/clirr.cfg", - ".kokoro/presubmit/common.cfg", - ".kokoro/presubmit/dependencies.cfg", - ".kokoro/presubmit/integration.cfg", - ".kokoro/presubmit/java11.cfg", - ".kokoro/presubmit/java7.cfg", - ".kokoro/presubmit/java8-osx.cfg", - ".kokoro/presubmit/java8-win.cfg", - ".kokoro/presubmit/java8.cfg", - ".kokoro/presubmit/linkage-monitor.cfg", - ".kokoro/presubmit/lint.cfg", - ".kokoro/presubmit/samples.cfg", - ".kokoro/readme.sh", - ".kokoro/release/bump_snapshot.cfg", - ".kokoro/release/common.cfg", - ".kokoro/release/common.sh", - ".kokoro/release/drop.cfg", - ".kokoro/release/drop.sh", - ".kokoro/release/promote.cfg", - ".kokoro/release/promote.sh", - ".kokoro/release/publish_javadoc.cfg", - ".kokoro/release/publish_javadoc.sh", - ".kokoro/release/publish_javadoc11.cfg", - ".kokoro/release/publish_javadoc11.sh", - ".kokoro/release/snapshot.cfg", - ".kokoro/release/snapshot.sh", - ".kokoro/release/stage.cfg", - ".kokoro/release/stage.sh", - ".kokoro/trampoline.sh", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "codecov.yaml", - "samples/install-without-bom/pom.xml", - "samples/pom.xml", - "samples/snapshot/pom.xml", - "samples/snippets/pom.xml" - ] -} \ No newline at end of file diff --git a/versions.txt b/versions.txt index 6ffb4be4..7bbc36cb 100644 --- a/versions.txt +++ b/versions.txt @@ -1,4 +1,4 @@ # Format: # module:released-version:current-version -google-oauth-client:1.36.0:1.36.0 +google-oauth-client:1.37.0:1.37.0