授权失败,调用MobileFirst Adapter [英] Authorization failure calling MobileFirst Adapter

查看:152
本文介绍了授权失败,调用MobileFirst Adapter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不确定之前是否提出了相同的问题(我试图发表评论,但无法做到 - 请参阅下面的链接)

Not sure whether the same issue has been raised before (I tried to comment but was unable to do so - see link below)

无论如何,我只是将我的开发环境升级到MobileFirst Studio 7.1,我遇到了我们在7.0中创建的适配器的问题。适配器部署时没有错误但是当我尝试从我的浏览器调用WL.Client.invokeProcedure时(我现在只是作为Web应用程序进行测试)我在浏览器控制台中收到错误500。

Anyway, I've just upgraded my development environment to MobileFirst Studio 7.1 and I'm having an issue with the adapters we created in 7.0. The adapters deploy without error but when I try to call WL.Client.invokeProcedure from my browser (I'm just testing as a web app at the moment) I get an error 500 in the browser console.

我已经使用运行方式...>调用MobileFirst适配器菜单选项测试了适配器,它们可以工作,所以这只与从中访问适配器有关一个客户。 MobileFirst Development Server控制台中的异常输出为:

I've tested the adapters using the "Run As ... > Call MobileFirst Adapter" menu option, and they work so this is only related to accessing the adapters from a client. The exception output in the MobileFirst Development Server console is:

[错误] FWLSE0335E:授权失败:在服务器上找不到ClientId WbWBHC11bK。 [project BusinessEnergy]
[错误] FWLSE0048E:捕获到未处理的异常:null
com.worklight.authorization.endpoint.OauthAuthorizationException
at com.worklight.core.auth.impl.AuthorizationFilterUtils.isAuthorizedClient( AuthorizationFilterUtils.java:63)
at com.worklight.core.auth.impl.AuthorizationFilterUtils.isSessionIndependentSupportedClient(AuthorizationFilterUtils.java:49)
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter( AuthenticationFilter.java:197)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter( WebAppFilterChain.java:86)
at com.worklight.analytics.AnalyticsFilter.doFilter(AnalyticsFilter.java:124)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java: 206)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.jav a:86)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:978)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager。 java:1100)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4845)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost $ 2.handleRequest(DynamicVirtualHost .java:297)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost $ 2.run(DynamicVirtualHost。 java:262)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink $ TaskWrapper.run(HttpDispatcherLink.java:955)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[project BusinessEnergy]
com.worklight.authorizatio n.endpoint.OauthAuthorizationException

[ERROR ] FWLSE0335E: Authorization failed: ClientId WbWBHC11bK was not found on the server. [project BusinessEnergy] [ERROR ] FWLSE0048E: Unhandled exception caught: null com.worklight.authorization.endpoint.OauthAuthorizationException at com.worklight.core.auth.impl.AuthorizationFilterUtils.isAuthorizedClient(AuthorizationFilterUtils.java:63) at com.worklight.core.auth.impl.AuthorizationFilterUtils.isSessionIndependentSupportedClient(AuthorizationFilterUtils.java:49) at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:197) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:86) at com.worklight.analytics.AnalyticsFilter.doFilter(AnalyticsFilter.java:124) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:86) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:978) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1100) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4845) at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.handleRequest(DynamicVirtualHost.java:297) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:981) at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:262) at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:955) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) [project BusinessEnergy] com.worklight.authorization.endpoint.OauthAuthorizationException

我想知道v7.1中的身份验证是否基本已经改变,但创建新v7.1项目的同事正在运行而没有此问题。

I wondered whether something basic has changed with authentication in v7.1 but a colleague who created the new v7.1 project is running without this issue.

同样单独一个帖子中的问题?

推荐答案

找到我的问题的解决方案,基本上是清除cookie缓存我的浏览器。我目前没有要求在同一个浏览器中查看多个应用程序,因此我可能不会遇到您提到Idan的其他问题(感谢您的快速回复)

Found a resolution to my issue which was basically to clear the cookie cache in my browser. I don't have a requirement at the moment to view multiple apps in the same browser so I may not hit the other issue you mentioned Idan (thanks for your quick response though)

这篇关于授权失败,调用MobileFirst Adapter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆