[IdP Mobile] IDP Mobile - IdPIntegratedLogin

Forge Component
(2)
Published on 16 Apr by Telmo Martins
2 votes
Published on 16 Apr by Telmo Martins

Hi,

I'm trying to use idp-mobile and I keep getting an error on the login screen in the step where I replaced the "DoLogin" server action with "IdPIntegratedLogin" client action.

so at first I was making sure that I managed to setup Azure as my Identity Provider:

1. I have successfully setup my IDP with Azure ADFS.

2. I have successfully created a custom web application that uses IDP connector for login.

3. I have successfully manged to login with my credentials using the "Idp Mobile Sample".

 

Right after that I wanted to use idp-mobile in a custom mobile application so here is what i've done so far:

1. created a mobile app (phone with mobile module)

2. I added idp-mobile using the "manage dependencies" option

3. I replaced the "DoLogin" server action with "IdPIntegratedLogin" client action, and I've updated username , password and persistence as required.

4. I tried to login an got an error - screen shot attached.


Many Thanks,

Dudi Levi

Hi,

Yesterday I tried to setup the IdpServer (the one from forge) so I will be able to use the default login page and without browsing events.

So now I get the following error please see the attachment.


Hi dudi,


Didn't fully understand the error on 1.png.

Regarding the second post, you have to set the correct domain for the REST call to OS IdPServer, which is dummy by default.

So on the IdP module, you can find a REST api being consumed called MobileAuth. The "default" URL is https://idp-server-domain/IdPServer/rest/MobileAuth 

You have to change "idp-server-admin" with the correct IdPServer domain.


Regards,

Telmo Martins

Hi Telmo


I am also trying to use the IDP connector along with Azure, I have configured everything according to the documents I found on this. But looking at your post above you speak of changing the URL in the IDP Module, what would be an example of this URL?

Also when I try using the IdPIntegratedLogin I get an error in the console on the web browser saying "IdPMobile.LoginInvalid: An error occurs. Please try again." What could I be missing here?


Regards

Shaun

Hi Shaun,

As we talked, with Azure you must use the InAppBrowser. As long your device have connectivity to it, it should display Azure login screen.

Regards

Telmo Martins wrote:

Hi dudi,


Didn't fully understand the error on 1.png.

Regarding the second post, you have to set the correct domain for the REST call to OS IdPServer, which is dummy by default.

So on the IdP module, you can find a REST api being consumed called MobileAuth. The "default" URL is https://idp-server-domain/IdPServer/rest/MobileAuth 

You have to change "idp-server-admin" with the correct IdPServer domain.


Regards,

Telmo Martins

Hi Telmo,

Is only needed change "idp-server-admin" with the correct IdPServer domain? We are doing that change but we are not able to find the rest service.

We are using the ADFS.

Maybe the URL need to be changed to 

 https://idp-server-domain/ADFS/rest/MobileAuth ?


Best Regards,

FV


Hi Fabio,

That REST call is only used with the IdP server is the actual IdP server forge component, which is not the case since you're using ADFS.

Therefor you must also use the InAppBrowser to display the ADFS login page.

Additionally in the configuration page you need to uncheck the option "Is OutSystems IdP Server"

Regards.