Skip to content

Commit a161b3a

Browse files
authored
Merge pull request #528 from AzureAD/SJAIN/Documentation-update
Documentation update for App token provider
2 parents 5fd90f6 + 36cddec commit a161b3a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main/java/com/microsoft/aad/msal4j/ClientCredentialRequest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
class ClientCredentialRequest extends MsalRequest {
1212

1313
ClientCredentialParameters parameters;
14+
/** AppTokenProvider creates a Credential from a function that provides access tokens. The function
15+
must be concurrency safe. This is intended only to allow the Azure SDK to cache MSI tokens. It isn't
16+
useful to applications in general because the token provider must implement all authentication logic. */
1417
Function<AppTokenProviderParameters, CompletableFuture<TokenProviderResult>> appTokenProvider;
1518

1619
ClientCredentialRequest(ClientCredentialParameters parameters,

src/main/java/com/microsoft/aad/msal4j/ConfidentialClientApplication.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public class ConfidentialClientApplication extends AbstractClientApplicationBase
3434
private boolean clientCertAuthentication = false;
3535
private ClientCertificate clientCertificate;
3636

37+
/** AppTokenProvider creates a Credential from a function that provides access tokens. The function
38+
must be concurrency safe. This is intended only to allow the Azure SDK to cache MSI tokens. It isn't
39+
useful to applications in general because the token provider must implement all authentication logic. */
3740
public Function<AppTokenProviderParameters, CompletableFuture<TokenProviderResult>> appTokenProvider;
3841

3942
@Accessors(fluent = true)

0 commit comments

Comments
 (0)