File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
msal4j-sdk/src/main/java/com/microsoft/aad/msal4j Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1414public interface IPublicClientApplication extends IClientApplicationBase {
1515
1616 /**
17- * Acquires tokens from the authority configured in the application via Username/Password authentication.
17+ * Acquires tokens from the authority configured in the application via Username/Password authentication.<br>
18+ * <p><b>Deprecated:</b> This API has been deprecated and will be removed in a future release. Use a more secure flow instead.<br>
19+ * See <a href="https://aka.ms/msalnet-ropc-migration">https://aka.ms/msalnet-ropc-migration</a> for migration guidance.
1820 *
1921 * @param parameters instance of {@link UserNamePasswordParameters}
2022 * @return {@link CompletableFuture} containing an {@link IAuthenticationResult}
23+ * @deprecated This API not a secure flow and will be removed in a future release.
2124 */
25+ @ Deprecated
2226 CompletableFuture <IAuthenticationResult > acquireToken (UserNamePasswordParameters parameters );
2327
2428 /**
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public class PublicClientApplication extends AbstractClientApplicationBase imple
2424 private boolean brokerEnabled ;
2525
2626 @ Override
27+ @ Deprecated
2728 public CompletableFuture <IAuthenticationResult > acquireToken (UserNamePasswordParameters parameters ) {
2829
2930 validateNotNull ("parameters" , parameters );
You can’t perform that action at this time.
0 commit comments