Skip to content

Commit

Permalink
Add public API in ConfidentialClient interface
Browse files Browse the repository at this point in the history
  • Loading branch information
sameerag committed Jul 9, 2021
1 parent 7ae63d0 commit be3f7bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/msal-node/src/client/IConfidentialClientApplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

/**
Expand All @@ -36,6 +37,9 @@ export interface IConfidentialClientApplication {
/** Acquires tokens from the authority for the application */
acquireTokenOnBehalfOf(request: OnBehalfOfRequest): Promise<AuthenticationResult | null>;

/** Acquires tokens with password grant by exchanging client applications username and password for credentials */
acquireTokenByUsernamePassword(request: UsernamePasswordRequest): Promise<AuthenticationResult | null>;

/** Gets the token cache for the application */
getTokenCache(): TokenCache;

Expand Down

0 comments on commit be3f7bd

Please sign in to comment.