簡體   English   中英

如何在 azure 和 OAuth 2.0 中使用 access_token

[英]How to use access_token in azure with OAuth 2.0

I am practicing an azure sample named OAuth 2.0 Sample for Azure AD Spring Boot Starter Resource Server library for Java .I followed the steps but blocked in Check the authentication and authorization .I have got the access_token successfully, but I don't know how to在 postman 或任何其他方式中使用它。 有什么文檔或建議嗎? 非常感謝!

好的,我在請求 header 中添加了授權,但我得到了 401 和一條錯誤消息 這就是我獲得access_token的方式。 有什么不對?

您可以執行以下操作:

您可以在頂部添加必要的 URL 和 HTTP 動詞。

您必須在 postman 中添加授權標並添加 oauth 令牌承載,如下所示

Authorization :  Bearer <Oauth Token>

在此處輸入圖像描述

更新:

在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM