diff --git a/kiota_authentication_azure/azure_identity_access_token_provider.py b/kiota_authentication_azure/azure_identity_access_token_provider.py index bc4049d..c1e473a 100644 --- a/kiota_authentication_azure/azure_identity_access_token_provider.py +++ b/kiota_authentication_azure/azure_identity_access_token_provider.py @@ -103,12 +103,12 @@ async def get_authorization_token( result = self._credentials.get_token( *self._scopes, claims=decoded_claim, - is_cae_enabled=self._is_cae_enabled, + enable_cae=self._is_cae_enabled, **self._options ) else: result = self._credentials.get_token( - *self._scopes, claims=decoded_claim, is_cae_enabled=self._is_cae_enabled + *self._scopes, claims=decoded_claim, enable_cae=self._is_cae_enabled ) if inspect.isawaitable(result): diff --git a/tests/test_azure_identity_authentication_provider.py b/tests/test_azure_identity_authentication_provider.py index 64296b2..3039992 100644 --- a/tests/test_azure_identity_authentication_provider.py +++ b/tests/test_azure_identity_authentication_provider.py @@ -42,5 +42,5 @@ async def test_adds_claim_to_the_token_context(mocker): credential.get_token.assert_called_once_with( 'https://graph.microsoft.com/.default', claims="""{"access_token":{"nbf":{"essential":true, "value":"1652813508"}}}""", - is_cae_enabled=True + enable_cae=True )