我使用 Mobilefirst 客户端访问服务的移动应用程序无法登录,在服务器端,我看到以下错误。在我修改 server.js 之前它一直有效。我添加了一些 HTTP GET/PUT/POST 端点。该应用程序确实启动了,我可以使用浏览器测试这些端点。但是移动应用程序随后会引发错误02-04 14:07:28.247 13660-13700/com.ibm.bluelist E/SplashActivityLoginFail: Failed to login: Response:
02-04 14:07:28.247 13660-13699/com.ibm.bluelist E/mfpsdk.AuthorizationProcessManager: AuthorizationProcessManager.handleAuthorizationFailure in AuthorizationProcessManager.java:426 :: authorization process failed
服务器端错误:
Error: Cannot POST /apps/272690ba-3a01-4f82-8f79-293688c5b1de/customAuthRealm_1/startAuthorization
at raiseUrlNotFoundError (/home/vcap/app/node_modules/loopback/server/middleware/url-not-found.js:15:17)
at Layer.handle [as handle_request] (/home/vcap/app/node_modules/loopback/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/vcap/app/node_modules/loopback/node_modules/express/lib/router/index.js:312:13)
at /home/vcap/app/node_modules/loopback/node_modules/express/lib/router/index.js:280:7
at Function.process_params (/home/vcap/app/node_modules/loopback/node_modules/express/lib/router/index.js:330:12)
at next (/home/vcap/app/node_modules/loopback/node_modules/express/lib/router/index.js:271:10)
at serveStatic (/home/vcap/app/node_modules/loopback/node_modules/express/node_modules/serve-static/index.js:74:16)
at Layer.handle [as handle_request] (/home/vcap/app/node_modules/loopback/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/vcap/app/node_modules/loopback/node_modules/express/lib/router/index.js:312:13)
at /home/vcap/app/node_modules/loopback/node_modules/express/lib/router/index.js:280:7