How using authenticated_callable with Microsoft auth?

how do I get authenticated_callable on the server work with Microsoft login using own Azure app AD?
For example, I have the following in my server code:

authenticated_callable = anvil.server.callable(require_user=True)
@authenticated_callable
def kill_background_task(uniqid):
......

This works well with the Anvil default authentication but not with Microsoft authentication.