Skip to content

Commit

Permalink
docs: adding deprecated annotation and guide for migration (#2244)
Browse files Browse the repository at this point in the history
  • Loading branch information
suztomo committed Jan 26, 2023
1 parent ba3b0e5 commit e505c26
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Expand Up @@ -22,6 +22,10 @@
* Google OAuth 2.0 abstract verification code receiver that prompts user to paste the code copied
* from the browser.
*
* <p>This uses deprecated OAuth out-of-band (oob) flow. To migrate to an alternative flow, please
* refer to <a href="https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html">Making
* Google OAuth interactions safer by using more secure OAuth flows</a>.
*
* <p>Implementation is thread-safe.
*
* @since 1.11
Expand Down
Expand Up @@ -44,8 +44,13 @@ public class GoogleOAuthConstants {
* Redirect URI to use for an installed application as specified in <a
* href="https://developers.google.com/identity/protocols/OAuth2InstalledApp">Using OAuth 2.0 for
* Mobile & Desktop Apps</a>.
*
* <p>OAuth out-of-band (oob) flow has been deprecated. To migrate to an alternative flow, please
* refer to <a
* href="https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html">Making Google
* OAuth interactions safer by using more secure OAuth flows</a>.
*/
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() {}
}

0 comments on commit e505c26

Please sign in to comment.