2017-05-25 156 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!更新了答案以包含澄清 –