Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: adding deprecated annotation for OOB flow and guide for migration #2244

Merged
merged 1 commit into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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() {}
}