|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright 2002-2021 the original author or authors.
|
|
|
+ * Copyright 2002-2025 the original author or authors.
|
|
|
*
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
@@ -139,13 +139,12 @@ public final class ReactiveOAuth2AuthorizedClientProviderBuilder {
|
|
|
/**
|
|
|
* Configures support for the {@code password} grant.
|
|
|
* @return the {@link ReactiveOAuth2AuthorizedClientProviderBuilder}
|
|
|
- * @deprecated The latest OAuth 2.0 Security Best Current Practice disallows the use
|
|
|
- * of the Resource Owner Password Credentials grant. See reference
|
|
|
- * <a target="_blank" href=
|
|
|
- * "https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics-19#section-2.4">OAuth
|
|
|
- * 2.0 Security Best Current Practice.</a>
|
|
|
+ * @deprecated The OAuth 2.0 Security Best Current Practice disallows the use of the
|
|
|
+ * Resource Owner Password Credentials grant. See reference <a target="_blank" href=
|
|
|
+ * "https://datatracker.ietf.org/doc/html/rfc9700#section-2.4">OAuth 2.0 Security Best
|
|
|
+ * Current Practice.</a>
|
|
|
*/
|
|
|
- @Deprecated
|
|
|
+ @Deprecated(since = "5.8", forRemoval = true)
|
|
|
public ReactiveOAuth2AuthorizedClientProviderBuilder password() {
|
|
|
this.builders.computeIfAbsent(PasswordReactiveOAuth2AuthorizedClientProvider.class,
|
|
|
(k) -> new PasswordGrantBuilder());
|
|
@@ -157,13 +156,12 @@ public final class ReactiveOAuth2AuthorizedClientProviderBuilder {
|
|
|
* @param builderConsumer a {@code Consumer} of {@link PasswordGrantBuilder} used for
|
|
|
* further configuration
|
|
|
* @return the {@link ReactiveOAuth2AuthorizedClientProviderBuilder}
|
|
|
- * @deprecated The latest OAuth 2.0 Security Best Current Practice disallows the use
|
|
|
- * of the Resource Owner Password Credentials grant. See reference
|
|
|
- * <a target="_blank" href=
|
|
|
- * "https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics-19#section-2.4">OAuth
|
|
|
- * 2.0 Security Best Current Practice.</a>
|
|
|
+ * @deprecated The OAuth 2.0 Security Best Current Practice disallows the use of the
|
|
|
+ * Resource Owner Password Credentials grant. See reference <a target="_blank" href=
|
|
|
+ * "https://datatracker.ietf.org/doc/html/rfc9700#section-2.4">OAuth 2.0 Security Best
|
|
|
+ * Current Practice.</a>
|
|
|
*/
|
|
|
- @Deprecated
|
|
|
+ @Deprecated(since = "5.8", forRemoval = true)
|
|
|
public ReactiveOAuth2AuthorizedClientProviderBuilder password(Consumer<PasswordGrantBuilder> builderConsumer) {
|
|
|
PasswordGrantBuilder builder = (PasswordGrantBuilder) this.builders
|
|
|
.computeIfAbsent(PasswordReactiveOAuth2AuthorizedClientProvider.class, (k) -> new PasswordGrantBuilder());
|