|
@@ -139,7 +139,13 @@ 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
|
|
|
public ReactiveOAuth2AuthorizedClientProviderBuilder password() {
|
|
|
this.builders.computeIfAbsent(PasswordReactiveOAuth2AuthorizedClientProvider.class,
|
|
|
(k) -> new PasswordGrantBuilder());
|
|
@@ -151,7 +157,13 @@ 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
|
|
|
public ReactiveOAuth2AuthorizedClientProviderBuilder password(Consumer<PasswordGrantBuilder> builderConsumer) {
|
|
|
PasswordGrantBuilder builder = (PasswordGrantBuilder) this.builders.computeIfAbsent(
|
|
|
PasswordReactiveOAuth2AuthorizedClientProvider.class, (k) -> new PasswordGrantBuilder());
|