2017-09-20 57 views
-1

發出請求,以獲得用戶登錄數據: https://someapp.azurewebsites.net/api/Aut 它返回我的授權令牌,如:此請求的授權被拒絕。當我使用郵遞員

{ 
    "dados": { 
        "AuthenticationToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9....." 
... 
} 

在這種情況下,沒有授權required.How我會得到授權令牌,以便郵遞員可以將所有的答案都帶給我所打的電話? 郵差: enter image description here

但是,如果有一些授權,它是行不通的。

+0

看到https://blogs.msdn.microsoft.com/benjaminperkins/2017/01/03/using-postman-to-call-azure-rest- apis /和https://stackoverflow.com/questions/44742100/azure-ad-bearer-invalid-token-error-using-postman – Oleg

+0

Thks,但不適用於我。 –

回答

0

我通過添加X-ZUMO-AUTH而不是AUTHORIZATION來解決問題。 在我的情況下,當搜索用戶時,它返回給我授權令牌。 的變化是在下面的圖片:

enter image description here

相關問題