Skip to content

Commit e505c26

Browse files
authored
docs: adding deprecated annotation and guide for migration (#2244)
1 parent ba3b0e5 commit e505c26

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

google-api-client-java6/src/main/java/com/google/api/client/googleapis/extensions/java6/auth/oauth2/GooglePromptReceiver.java

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
* Google OAuth 2.0 abstract verification code receiver that prompts user to paste the code copied
2323
* from the browser.
2424
*
25+
* <p>This uses deprecated OAuth out-of-band (oob) flow. To migrate to an alternative flow, please
26+
* refer to <a href="https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html">Making
27+
* Google OAuth interactions safer by using more secure OAuth flows</a>.
28+
*
2529
* <p>Implementation is thread-safe.
2630
*
2731
* @since 1.11

google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleOAuthConstants.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,13 @@ public class GoogleOAuthConstants {
4444
* Redirect URI to use for an installed application as specified in <a
4545
* href="https://developers.google.com/identity/protocols/OAuth2InstalledApp">Using OAuth 2.0 for
4646
* Mobile & Desktop Apps</a>.
47+
*
48+
* <p>OAuth out-of-band (oob) flow has been deprecated. To migrate to an alternative flow, please
49+
* refer to <a
50+
* href="https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html">Making Google
51+
* OAuth interactions safer by using more secure OAuth flows</a>.
4752
*/
48-
public static final String OOB_REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob";
53+
@Deprecated public static final String OOB_REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob";
4954

5055
private GoogleOAuthConstants() {}
5156
}

0 commit comments

Comments
 (0)