-
Describe the bug For MS Graph requests I use When I called
Where the
So I removed the To Reproduce
Expected behavior What you see instead The MSAL Python version you are using Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Thank you @cp2004 for investing your time on investigating and describing the behavior. We love to have this kind of in-depth engagement with the community members!
In this particular case, what you observed was actually an expected behavior.
Your app was throttled by AAD when it detects that you send out lots of identical request without properly utilizing a token cache.
That is indeed the right fix for your app. Since that "bar" scope was never really contained in the ATs that you obtained, it is safe to say that your app does not really need that scope to function. P.S.: While MSAL Python's current behavior is not wrong, it is probably also fair to say not many app developers know that they are supposed to examine the optional |
Beta Was this translation helpful? Give feedback.
-
Thanks for getting back to me with an explanation - it's helped a lot to clear up some of my misunderstanding of the way it works. I did start using MSAL without much knowledge of the way OAuth2 works, it made it way way easier to figure out tokens etc, I love having this library implemented.
Understood, this makes sense if that's the protocol, but I didn't know that was a possibility. I like the idea of emitting a warning or some other way (maybe in the docs) to say check the scopes you received are right.
I'm quite happy I was able to get to the bottom of it in the end 🙂 |
Beta Was this translation helpful? Give feedback.
Thank you @cp2004 for investing your time on investigating and describing the behavior. We love to have this kind of in-depth engagement with the community members!