2017-05-25 255 views
0

我正嘗試使用MobileFirst Server作爲OAuth服務器。知識中心提供了有關外部應用程序如何通過MobileFirst Token驗證程序端點驗證移動客戶端發送的令牌的詳細步驟。但是無法找到正確的文檔來請求來自MFP服務器的移動客戶端的新授權令牌。MobileFirst 7.1 OAuth令牌請求

在開發環境中,我們有一個testtoken端點。

http://localhost:10080/OAuthExternalServer/authorization/v1/testtoken

{ 「授權」:「承載eyJqcG .........}

如何從MFP生產服務器類似令牌移動客戶端上

MFP版本。 :服務器版本:7.1.0.00.20170330-0917

感謝

回答

2

通過OAuth安全模型,MFP服務器是您的OAuth令牌提供商在。完成挑戰服務器爲您提供一個OAuth令牌。 ChallengeHandler中不需要做任何特殊的OAuth令牌。請參考這裏的樣本:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1 /認證安全/

如果您正在尋找使用OAuth用於驗證外部資源,這裏指的步驟https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.0/authentication-security/using-mobilefirst-server-authenticate-external-resources/

下面是使用introspectionData一個實例驗證令牌驗證https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/authentication-and-security/protecting-external-resources/jtv/

基本上反思端點可以被調用來驗證由MFP服務器爲默認流提供

與7.1一般的OAuth流令牌可以在這裏https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.0/authentication-security/authentication-concepts/oauth-based-security-model/稱作。

+0

嗨Kavitha,我想使用MobileFirst 7.1服務器充當OAuth令牌提供者。想要實現一個ChallengeHandler,那會給我OAuth令牌。請參考這個流程。 https://mobilefirstplatform.ibmcloud.com/assets/backup/MFP_Security_obtain_token.jpg – Ragu

+2

使用OAuth安全模型,MFP服務器是您的OAuth令牌提供程序。完成挑戰服務器後,您將獲得一個OAuth令牌。 您無需在ChallengeHandler中爲OAuth令牌做任何特殊的事情。 請參考這裏的樣本: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.1/authentication-security/ –

+0

感謝vivin!更新了答案以包含澄清 –