SkipToTheEndpoint / M365AppsAPI

Creative Commons Zero v1.0 Universal
2 stars 0 forks source link

Token headers example #1

Open pesors opened 3 weeks ago

pesors commented 3 weeks ago

Hi James, I have read your blog related to the M365AppsAPI calls you published here, and unless I am reading it wrong, the APIs do not work or do they actually? I am only interested in the OneDrive reports. I captured header details via Fidler, read carefully your blog, but I am still unable to make it work. Could you please contact me on petr.sors@gmail.com and help me out with a sample header you add to the bearer token?

Much obliged in advance Petr

SkipToTheEndpoint commented 3 weeks ago

Hi @pesors

I just went and checked a few endpoints to see whether they'd changed anything, but it all seems to still work. Literally all I did was open Edge Dev Tools when navigating config.office.com and grabbed the bearer token from one of the requests and threw that into the authorisation in PostMan.

As I say in my blog, the authentication goes into a black box so I don't think you're actually able to use any of the information programmatically, but I'm just an idiot who likes to hit F12 on pages to see what's happening, someone with some actual skill might be able to make use of it!

Thanks

James