You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The driver MUST use the returned `"access_token"` value as the access token in a `JwtStepRequest`. If the response does
1321
+
notreturn a status code of 200, the driver MUSTraise an error including the HTTP response body.
1322
+
1323
+
For more details, see
1324
+
[How to use managed identities for Azure resources on an Azure VM to acquire an access token](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-to-use-vm-token).
1325
+
1326
+
The callback itself MUSTnot perform any caching, and the driver MUST cache its tokens in the same way asif a custom
1327
+
callback had been provided by the user.
1328
+
1266
1329
#### OIDC Callback
1267
1330
1268
1331
Drivers MUST allow users to provide a callback that returns an OIDC access token. The purpose of the callback is to
@@ -1280,6 +1343,8 @@ The driver MUST pass the following information to the callback:
1280
1343
1281
1344
-`timeout`: A timeout, in milliseconds, a deadline, or a `timeoutContext`.
1282
1345
1346
+
-`username`: The username given as part of the connection string or`MongoClient` parameter.
1347
+
1283
1348
-`version`: The callback API version number. The version number is used to communicate callback API changes that are
1284
1349
not breaking but that users may want to know about and review their implementation. Drivers MUSTpass`1`for the
1285
1350
initial callback API version number and increment the version number anytime the API changes. Note that this may
@@ -1310,6 +1375,7 @@ An example callback API might look like:
0 commit comments