diff --git a/lib/msal-node/src/client/IConfidentialClientApplication.ts b/lib/msal-node/src/client/IConfidentialClientApplication.ts index a99810656b..db684282fb 100644 --- a/lib/msal-node/src/client/IConfidentialClientApplication.ts +++ b/lib/msal-node/src/client/IConfidentialClientApplication.ts @@ -10,6 +10,7 @@ import { ClientCredentialRequest } from "../request/ClientCredentialRequest"; import { OnBehalfOfRequest } from "../request/OnBehalfOfRequest"; import { RefreshTokenRequest } from "../request/RefreshTokenRequest"; import { SilentFlowRequest } from "../request/SilentFlowRequest"; +import { UsernamePasswordRequest } from "../request/UsernamePasswordRequest"; import { TokenCache } from "../cache/TokenCache"; /** @@ -36,6 +37,9 @@ export interface IConfidentialClientApplication { /** Acquires tokens from the authority for the application */ acquireTokenOnBehalfOf(request: OnBehalfOfRequest): Promise; + /** Acquires tokens with password grant by exchanging client applications username and password for credentials */ + acquireTokenByUsernamePassword(request: UsernamePasswordRequest): Promise; + /** Gets the token cache for the application */ getTokenCache(): TokenCache;