IBM Mobile first 7.1应用程序中的社交登录或第三方登录

时间:2018-10-21 06:56:31

标签: mobile ibm-mobilefirst

问题陈述: 我正在尝试在IBM mobile first 7.1移动应用程序中实现第三方登录(基于oauth)。

在我的登录屏幕中,用户单击社交登录按钮(例如FB,Gmail或第三方登录)。用户重定向到chrome自定义标签中的登录屏幕,登录后,用户将重定向到我的应用程序,在这里我要求提供本地移动应用程序凭据,该凭据用于显示基于本地凭据的某些服务。

使用我的本地凭据正常登录可以正常工作。但是在进行oauth身份验证之后,我回到了我的应用程序,正在输入我的本地凭据,并尝试调用一个适配器,在该适配器中设置activeuser(WL.server.setActiveUser(“ relamname”,“ useridentity”))。详细说明。在开发人员工具中出现此异常失败。

例外: 来自调用的数据:: {“ responseHeaders”:{“ X-Powered-By”:“ Servlet / 3.0”,“ P3P”:“ policyref = \” / w3c / p3p.xml \“,CP = \” CAO DSP COR CURA ADMa DEVa我们的索引只有UNI COM NAV INT DEM PRE \“”,“ Content-Type”:“ application / json; charset = UTF-8”,“ Expires”:“ Thu,1970年1月1日00:00:00 GMT”,“ Cache-Control”:“无缓存,无存储,必须重新验证”,“ Pragma”:“无缓存”,“ Content-Length”:“ 655”,“ Date”:“ Sat, 2018年10月20日19:22:23 GMT“},”状态“:200,” responseText“:” / -secure- \ n {\“引用\”:{\“ rhinoException \”:\“ org。 mozilla.javascript.WrappedException:包装了com.worklight.server.auth.api.WorkLightAuthenticationException(\ /integration.js#44)\“,\” fileName \“:\” \ / integration.js \“,\” stack \ “:\” \ tat \ /integration.js:44(匿名)\ r \ n \ tat 2018-10-16T15:49:01.934Z \ / 291f5a76b4dfb3b0c62ecbf35ab7ac3a62b0b204 \ /Authentication_sso-impl.js:119(login_sso)\ r \ n \“,\” name \“:\” JavaException \“,\” message \“:\” com.worklight.server.auth.api.WorkLightAuthenticationException:null \“,\” lineNumber \“:44,\” javaException \“:\” com.worklight.s erver.auth.api.WorkLightAuthenticationException \“},\” errorCode \“:\” 100 \“,\” isSuccessful \“:true,\” authStatus \“:\” credentialsRequired \“} /”, “ responseJSON”:{“引用”:{“ rhinoException”:“ org.mozilla.javascript.WrappedException:包装为com.worklight.server.auth.api.WorkLightAuthenticationException(/integration.js#44)","fileName”:“ /integration.js","stack":"\tat /integration.js:44(匿名)\ r \ n \ tat 2018-10-16T15:49:01.934Z / 291f5a76b4dfb3b0c62ecbf35ab7ac3a62b0b204 / Authentication_sso-impl.js:119(login_sso )\ r \ n“,”名称“:” JavaException“,”消息“:” com.worklight.server.auth.api.WorkLightAuthenticationException:null“,” lineNumber“:44,” javaException“:” com.worklight。 server.auth.api.WorkLightAuthenticationException“},” errorCode“:” 100“,” isSuccessful“:true,” authStatus“:” credentialsRequired“},” errorCode“:” 100“,” invocationContext“:null,” invocationResult“ :{“ reference”:{“ rhinoException”:“ org.mozilla.javascript.WrappedException:包装为com.worklight.server.auth.api.WorkLightAuthenticationException (/integration.js#44)","fileName":"/integration.js","stack":"\tat /integration.js:44(匿名)\ r \ n \ tat 2018-10-16T15:49 :01.934Z / 291f5a76b4dfb3b0c62ecbf35ab7ac3a62b0b204 / Authentication_sso-impl.js:119(login_sso)\ r \ n“,”名称“:” JavaException“,”消息“:” com.worklight.server.auth.api.WorkLightAuthenticationException:null“, “ lineNumber”:44,“ javaException”:“ com.worklight.server.auth.api.WorkLightAuthenticationException”},“ errorCode”:“ 100”,“ isSuccessful”:true,“ authStatus”:“ credentialsRequired”}}}

我的问题: 我们可以在IBM Mobile first 7.1中进行社交登录吗,这是挑战处理程序的问题吗,如果我想在登录屏幕以外的其他屏幕上登录,是否需要创建新的挑战处理程序?

我们可以为单个身份验证领域创建多个挑战者吗?

请帮助。

谢谢。

0 个答案:

没有答案
相关问题