How to implement admin consent flow for native app?

℡╲_俬逩灬. 提交于 2019-12-07 05:21:26

问题


How can I implement admin consent flow for native app using O365 APIs of which permission scopes require admin consent?


回答1:


Admin Consent happens "out of band" from your normal authentication flow. To do this, you'll first need and Admin authenticate by going to:

https://login.microsoftonline.com/common/adminconsent?<yours params>.

You can provide this link within your app. Typically you would first attempt to authenticate them and present them with the Admin Consent option that process fails.

Once an Admin grants consent, users will be able to use OAUTH to authenticate via the standard endpoint:

https://login.microsoftonline.com/common/oauth2/authorize?<your params>



来源:https://stackoverflow.com/questions/35007389/how-to-implement-admin-consent-flow-for-native-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!