Description
Hey everyone,
first: great work on the library! I find the API to be awesome and working with it has been intuitive so far. The examples are well selected.
I ran into the following problem these days: I am using the device flow authentication and after one hour my token expires and is not automatically renewed. I know that the token is not renewed because when I send a request to the Microsoft Graph I get back that my token has expired.) When I debugged the code a little bit, I noticed the following problem:
In application.py
, the force_refresh
flag is not pulled into the _acquire_token_silent
method and therefore it is ignored. The way i see it, you would need to change line 358 to
result = self._acquire_token_silent(scopes, account, self.authority, force_refresh, **kwargs)
The same is true for line 366, where this is also missing.
However, what I was unable to confirm is whether this fixes my original issue with the token that is not renewed but expires.
What would be helpful to me at this point would be some guidance on how to debug this problem and whether my observation that there is some bug in the force_refresh
logic is true.
Best
Alexander