Closed dmulder closed 6 months ago
I just looked at the msal code and realized this function accepts an account
object, not a username. This could possibly be addressed in the documentation instead, so that the python docs are clear about what object should be passed here.
I just looked at the msal code and realized this function accepts an
account
object, not a username. This could possibly be addressed in the documentation instead, so that the python docs are clear about what object should be passed here.
Sorry to hear your suboptimal experience. We do provide API documentation whose link is available from the README of this repo.
In particular, although the doc for remove_account()
api does not currently have much detail, we were hoping the function name containing "account" would be a hint.
Describe the bug Using the latest msal (v1.26.0) calling remove_account() on a PublicClientApplication for a user which is in the cache causes the error "TypeError: string indices must be integers, not 'str'".
To Reproduce Steps to reproduce the behavior:
app_id
,authority_url
,username
,password
, andscopes
need to be defined. This produces the following output:Expected behavior User should be removed from cache.
What you see instead User is still in the cache and an error is displayed.
The MSAL Python version you are using 1.26.0