9e9e840
2022.12.07This uses deprecated OAuth out-of-band (oob) flow. To migrate to an alternative flow, please + * refer to Making + * Google OAuth interactions safer by using more secure OAuth flows. + * *
Implementation is thread-safe. * * @since 1.11 diff --git a/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleOAuthConstants.java b/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleOAuthConstants.java index 4d780e8da..2e4ea5733 100644 --- a/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleOAuthConstants.java +++ b/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleOAuthConstants.java @@ -44,8 +44,13 @@ public class GoogleOAuthConstants { * Redirect URI to use for an installed application as specified in Using OAuth 2.0 for * Mobile & Desktop Apps. + * + *
OAuth out-of-band (oob) flow has been deprecated. To migrate to an alternative flow, please
+ * refer to Making Google
+ * OAuth interactions safer by using more secure OAuth flows.
*/
- public static final String OOB_REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob";
+ @Deprecated public static final String OOB_REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob";
private GoogleOAuthConstants() {}
}
From 5de8cc20727df41fd008b3ff2709a60c3755b984 Mon Sep 17 00:00:00 2001
From: Mend Renovate
This uses deprecated OAuth out-of-band (oob) flow. To migrate to an alternative flow, please - * refer to Making - * Google OAuth interactions safer by using more secure OAuth flows. - * - *
Implementation is thread-safe. - * - * @since 1.11 - * @author Yaniv Inbar - */ -@Deprecated -public class GooglePromptReceiver extends AbstractPromptReceiver { - - @Override - public String getRedirectUri() throws IOException { - return GoogleOAuthConstants.OOB_REDIRECT_URI; - } -} diff --git a/google-api-client-java6/src/main/java/com/google/api/client/googleapis/extensions/java6/auth/oauth2/package-info.java b/google-api-client-java6/src/main/java/com/google/api/client/googleapis/extensions/java6/auth/oauth2/package-info.java deleted file mode 100644 index a07b65a90..000000000 --- a/google-api-client-java6/src/main/java/com/google/api/client/googleapis/extensions/java6/auth/oauth2/package-info.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2012 Google Inc. - * - * 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. - */ - -/** - * Google OAuth 2.0 utilities that help simplify the authorization flow on Java 6. - * - * @since 1.11 - * @author Yaniv Inbar - */ -package com.google.api.client.googleapis.extensions.java6.auth.oauth2; diff --git a/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleOAuthConstants.java b/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleOAuthConstants.java index 2e4ea5733..809c96dda 100644 --- a/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleOAuthConstants.java +++ b/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleOAuthConstants.java @@ -40,17 +40,5 @@ public class GoogleOAuthConstants { public static final String DEFAULT_PUBLIC_CERTS_ENCODED_URL = "https://www.googleapis.com/oauth2/v1/certs"; - /** - * Redirect URI to use for an installed application as specified in Using OAuth 2.0 for - * Mobile & Desktop Apps. - * - *
OAuth out-of-band (oob) flow has been deprecated. To migrate to an alternative flow, please
- * refer to Making Google
- * OAuth interactions safer by using more secure OAuth flows.
- */
- @Deprecated public static final String OOB_REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob";
-
private GoogleOAuthConstants() {}
}
diff --git a/pom.xml b/pom.xml
index 2df3abfa3..cd0292910 100644
--- a/pom.xml
+++ b/pom.xml
@@ -78,7 +78,6 @@