Solved

Mobile - username and password combination is incorrect

  • 27 December 2019
  • 4 replies
  • 118 views

Userlevel 3
Badge +11

Hi,

 

I am trying to get an application for mobile up and running. I have made a small test application and deployed it on a test server using our test_iam. When trying to log in using the desktop viewer I receive the above error. The network tab in debug shows no error. Using insomnia I am able to login to retrieve the metadata using the same credentials. The IIS and indicium are working fine, we are also using it for communication with our webshop. I checked all iam user settings, but they seem fine since I can start the application with the desktop GUI as well.

screen login:

 

What am I doing wrong here?

 

icon

Best answer by Arjan Sollie 30 December 2019, 11:17

View original

4 replies

Userlevel 4
Badge +13

Hi Hugo,

What is the full URL you are using to connect to your application? It is required to link to an IAM application. For example https://mywebsite.com/indicium/api/iam.

Userlevel 3
Badge +11

Hi Arjan,

Do you mean the iam itself or a mobile application within the iam? I assumed I had to link it to the alias of the mobile application, but that didn't work out. When I link it to the name of the iam database itself, it doesn't work either: both will get me a http 404 error on get_gui_global_settings.

Debugging gives me the following errors:

 

index.html:93 GET file:///……..mobilegui/Viewer/resources/app.asar/www/cordova.js net::ERR_FILE_NOT_FOUND


index.html:201 GET file:///……..mobilegui/Viewer/resources/app.asar/www/js/CustomCodeIndex.js net::ERR_FILE_NOT_FOUND


raven.min.js:2 GET https://indicium.cf.nl/mprod/api/cf_mobile 401 (Unauthorized) <<this is the mobile application alias


raven.min.js:2 GET https://indicium.cf.nl/mprod/api/cf_iam_20183_test 401 (Unauthorized) « this is the iam database name

 

 

Userlevel 4
Badge +13

Hugo,

The link which you should use, is indeed a link which leads to your IAM application. However this link does not contain the database name. Instead it should contain the application alias for your IAM application. Since this is a hidden application, by default the alias should have been set to IAM. The link, which you have to use, should be https://indicium.cf.nl/mprod/api/iam

Userlevel 3
Badge +11

Hi Arjan,

 

I had no idea I should have entered iam literally :-). It works now, thanks a lot for your help. I changed the alias of the application, as I did before when using indicium, but I understand now that this alias is not for the mobile application. Thanks again.

Reply