![](/img/trans.png)
[英]Do I need to create client_id and client_secret for each user for implementing oauth?
[英]How to read the access token without any user from Azure AD Application using client_id and client_secret in SPFX or Sharepoint Page using Javascript?
假設我已經創建了一個Azure AD應用程序,並為其提供了必要的圖形權限(Application Permissions)。
我想編寫代碼從共享點頁面/自定義操作在Microsoft Teams中創建團隊。
例如:
POST https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token HTTP/1.1
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
client_id=535fb089-9ff3-47b6-9bfb-4f1264799865
&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default
&client_secret=qWgdYAmab0YSkuL1qKv5bPX
&grant_type=client_credentials
我想點擊上面的api從AzureAD應用程序檢索訪問令牌,以使用javascript或spfx在我的Sharepoint頁面中使用MS-Graphs api。 強文本
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.