Skip to content

Commit a84698f

Browse files
authored
Merge pull request #80770 from bgavrilMS/patch-3
Add async delegate option for WithClientAssertion
2 parents a235b5b + 6506e6e commit a84698f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/active-directory/develop/msal-net-client-assertions.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ string signedClientAssertion = ComputeAssertion();
5252
app = ConfidentialClientApplicationBuilder.Create(config.ClientId)
5353
.WithClientAssertion(() => { return GetSignedClientAssertion(); } )
5454
.Build();
55+
56+
// or in async manner
57+
58+
app = ConfidentialClientApplicationBuilder.Create(config.ClientId)
59+
.WithClientAssertion(async cancellationToken => { return await GetClientAssertionAsync(cancellationToken); })
60+
.Build();
5561
```
5662

5763
The [claims expected by Azure AD](active-directory-certificate-credentials.md) in the signed assertion are:

0 commit comments

Comments
 (0)