Skip to content
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 @@ -14,11 +14,15 @@
public interface IPublicClientApplication extends IClientApplicationBase {

/**
* Acquires tokens from the authority configured in the application via Username/Password authentication.
* Acquires tokens from the authority configured in the application via Username/Password authentication.<br>
* <p><b>Deprecated:</b> This API has been deprecated and will be removed in a future release. Use a more secure flow instead.<br>
* See <a href="https://aka.ms/msal-ropc-migration">https://aka.ms/msal-ropc-migration</a> for migration guidance.
*
* @param parameters instance of {@link UserNamePasswordParameters}
* @return {@link CompletableFuture} containing an {@link IAuthenticationResult}
* @deprecated This API not a secure flow and will be removed in a future release.
*/
@Deprecated
CompletableFuture<IAuthenticationResult> acquireToken(UserNamePasswordParameters parameters);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class PublicClientApplication extends AbstractClientApplicationBase imple
private boolean brokerEnabled;

@Override
@Deprecated
public CompletableFuture<IAuthenticationResult> acquireToken(UserNamePasswordParameters parameters) {

validateNotNull("parameters", parameters);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@
* Object containing parameters for Username/Password flow. Can be used as parameter to
* {@link PublicClientApplication#acquireToken(UserNamePasswordParameters)}
* <p>
* <p><b>Deprecated:</b> This class supports the Resource Owner Password Credentials (ROPC) flow,
* which is insecure and will be removed in a future release.</p>
*
* <p>See <a href="https://aka.ms/msal-ropc-migration">https://aka.ms/msal-ropc-migration</a> for migration guidance.</p>
* For more details, see https://aka.ms/msal4j-username-password
*/
@Deprecated
public class UserNamePasswordParameters implements IAcquireTokenParameters {

private Set<String> scopes;
Expand Down