Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

Microsoft Graph

You cannot identify platforms of an application that is about to authenticate

Background You are trying to write an authentication logic for an application that calls a Microsoft Graph API. When you retrieve an authentication token, you have to pass client secret if the application is registerd with "Web" platform c…

OneDriveにMicrosoft Graph APIでアクセスする

OAuth2のトークンを取得する際にtenantを指定する*1のだが、これはOneDriveのURLのhttps://XXXXX-my.sharepoint.com/のところに入るテナント名とは別で、commonかorganizationsかconsumersを指定するとある。commonを指定しているドキュメント*2を参考にして…