Skip to main content
Solved

Mobile - username and password combination is incorrect

  • December 27, 2019
  • 4 replies
  • 119 views

Hugo Nienhuis
Superhero
Forum|alt.badge.img+12

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?

 

Best answer by Arjan Sollie

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

View original
This topic has been closed for comments

Arjan Sollie
Thinkwise blogger
Forum|alt.badge.img+14

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.


Hugo Nienhuis
Superhero
Forum|alt.badge.img+12

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

 

 


Arjan Sollie
Thinkwise blogger
Forum|alt.badge.img+14

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


Hugo Nienhuis
Superhero
Forum|alt.badge.img+12

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings