Mindsphere. access token empty in mendix cloud

0
Hi, Here is a problem. When I testing my Mindsphere app locally, in the beginning of runtime it asks me for Client ID and Client Secret. And then it shows graphics and data from mindsphere. But when Im runing my app in the cloud it shows my home page with empty mindsphere widgets, without reques Access Token window. I think, when I commit my project, it doesn't add Mindsphere modules(MindSphere SingleSignOn... ). How can I fix it?  
asked
3 answers
0

Hi Egor,

to run a MindSphere application in a cloud you have to register the application within MindSphere and open it from “inside”.

There are two ways possible:

  1. Deploy the app in the MindSphere CloudFoundry. See https://docs.mendix.com/developerportal/deploy/deploying-to-mindsphere
  2. Deploy the app to any other cloud and register it in MindSphere as a “selfhosted app”. See https://developer.mindsphere.io/howto/howto-selfhosted-integration.html

 

You can find some more details about running a MindSphere app in den Mendix cloud here: https://medium.com/@thiloboehm/running-a-mendix-mindsphere-app-hosted-on-mendix-cloud-inside-mindsphere-dd6e99acdcdd

Regards

Thilo

answered
0

Hi Egor,

 

I guess you start your application in the cloud via the Mindsphere Launchpad? If yes, then it is totally correct, that the application is not asking for credentials. Reason is, that you have already sign in into MindSphere before and this information will be provided to the application. When running localy, you are not sign in into MindSphere, therefore the application is asking for credentials.

But what do you mean with empty widgets? Are you reffering to the MindSphere Web Components? Which widget is empty?

 

Best

Stefan

answered
0

Token was empty because of wrong API role if Mindsphere app settings. And App didnt start in the LaunchPad because of lack of memory (App requires 512 Mb, I set 256 at manifest)

answered