723
Views
27
Comments
[Azure AD Mobile Plugin] Azure AD Mobile plugin usage
Question
azure-ad-mobile-plugin
Mobile icon
Forge asset by Truewind

Can someone provide the high-level steps for configuring and using the Azure AD Mobile plugin?

2020-09-21 08-42-47
Vincent Koning

If I remember correctly you need to do the following;

- Install IDP and IDP Mobile

- Define a new (enterprise?) application in Azure AD (Export the XML and certificate)

- Configure IDP to use the app in Azure AD

- Add the needed steps in the applications to allow saml authentication


Read the installation instructions at <your domain>/IdP/Instructions.aspx


2022-07-12 16-41-57
Pedro Costa

PINAL PATEL wrote:

Can someone provide the high-level steps for configuring and using the Azure AD Mobile plugin?

Hi Pinal Patel,

First, you need create a new aplication in your Azure Portal. Find "App Registration" in your portal.

Example:

In Required Permissions, add permission - Microsoft Graph > Access directory as the signed in user

Example:

And now, save your ClientId for configure your app.


In your outsystems app, create a button to open the microsoft login page:

Example:

Thanks !

2022-07-21 14-07-25
Abeer elAssal
 
MVP

Pedro Costa wrote:

PINAL PATEL wrote:

Can someone provide the high-level steps for configuring and using the Azure AD Mobile plugin?

Hi Pinal Patel,

First, you need create a new aplication in your Azure Portal. Find "App Registration" in your portal.

Example:

In Required Permissions, add permission - Microsoft Graph > Access directory as the signed in user

Example:

And now, save your ClientId for configure your app.


In your outsystems app, create a button to open the microsoft login page:

Example:

Thanks !


Hi, I'm wondering how to get the url of my application to use in redirecturl input field, is this the same as app link?! as the app should be generated in order to work, so i'm wondering how to get the url. Thanks in advance!

UserImage.jpg
Moritz Niesel

Pedro Costa wrote:

PINAL PATEL wrote:

Can someone provide the high-level steps for configuring and using the Azure AD Mobile plugin?

Hi Pinal Patel,

First, you need create a new aplication in your Azure Portal. Find "App Registration" in your portal.

Example:

In Required Permissions, add permission - Microsoft Graph > Access directory as the signed in user

Example:

And now, save your ClientId for configure your app.


In your outsystems app, create a button to open the microsoft login page:

Example:

Thanks !

Hi,

I did all the steps described above, but when I click the Login Button I get the Error Message "Cannot read property "ADAL" of undefined".
Anyone got a clue where it comes from?


2018-06-15 00-21-10
Pedro Vila Nova

Abeer ElAssal wrote:

Pedro Costa wrote:

PINAL PATEL wrote:

Can someone provide the high-level steps for configuring and using the Azure AD Mobile plugin?

Hi Pinal Patel,

First, you need create a new aplication in your Azure Portal. Find "App Registration" in your portal.

Example:

In Required Permissions, add permission - Microsoft Graph > Access directory as the signed in user

Example:

And now, save your ClientId for configure your app.


In your outsystems app, create a button to open the microsoft login page:

Example:

Thanks !


Hi, I'm wondering how to get the url of my application to use in redirecturl input field, is this the same as app link?! as the app should be generated in order to work, so i'm wondering how to get the url. Thanks in advance!


Hello Abeer ElAssal 

Did you find any solution ?


Best regards,
PVN

2022-07-21 14-07-25
Abeer elAssal
 
MVP

Pedro Vila Nova wrote:

Abeer ElAssal wrote:

Pedro Costa wrote:

PINAL PATEL wrote:

Can someone provide the high-level steps for configuring and using the Azure AD Mobile plugin?

Hi Pinal Patel,

First, you need create a new aplication in your Azure Portal. Find "App Registration" in your portal.

Example:

In Required Permissions, add permission - Microsoft Graph > Access directory as the signed in user

Example:

And now, save your ClientId for configure your app.


In your outsystems app, create a button to open the microsoft login page:

Example:

Thanks !


Hi, I'm wondering how to get the url of my application to use in redirecturl input field, is this the same as app link?! as the app should be generated in order to work, so i'm wondering how to get the url. Thanks in advance!


Hello Abeer ElAssal 

Did you find any solution ?


Best regards,
PVN

Hi, yes,

 I used one of both:

https://<AzureADURL>/MicrosoftLoginConnector/Callback.aspx

https://<AzureADURL>/<myAppName>


try this and let me know if you need any support.


2018-06-15 00-21-10
Pedro Vila Nova

Abeer ElAssal wrote:

Pedro Vila Nova wrote:

Abeer ElAssal wrote:

Pedro Costa wrote:

PINAL PATEL wrote:

Can someone provide the high-level steps for configuring and using the Azure AD Mobile plugin?

Hi Pinal Patel,

First, you need create a new aplication in your Azure Portal. Find "App Registration" in your portal.

Example:

In Required Permissions, add permission - Microsoft Graph > Access directory as the signed in user

Example:

And now, save your ClientId for configure your app.


In your outsystems app, create a button to open the microsoft login page:

Example:

Thanks !


Hi, I'm wondering how to get the url of my application to use in redirecturl input field, is this the same as app link?! as the app should be generated in order to work, so i'm wondering how to get the url. Thanks in advance!


Hello Abeer ElAssal 

Did you find any solution ?


Best regards,
PVN

Hi, yes,

 I used one of both:

https://<AzureADURL>/MicrosoftLoginConnector/Callback.aspx

https://<AzureADURL>/<myAppName>


try this and let me know if you need any support.



You are using in the mobile app the MicrosftLoginConnector, web version?

And what is your "<myappname>"

I was trying this :

But still not working

UserImage.jpg
Mahender Reddy Chitukula

Hi,

for may requirement, I should get user roles and groups. In output structure roles and groups are not defined. Could you please help me to get user roles and groups from active directory.

Regards,

Mahender Reddy C.

2022-07-12 16-41-57
Pedro Costa

Mahendhar wrote:

Hi,

for may requirement, I should get user roles and groups. In output structure roles and groups are not defined. Could you please help me to get user roles and groups from active directory.

Regards,

Mahender Reddy C.

Hi Mahendhar,

For mobile, you can check de return of JWT_ValidateToken.



For Web, check resource atribute from TokenRequest table.


I don't know if this is what you need.


Regards,

Pedro Costa

2022-07-12 16-41-57
Pedro Costa

Hi Moritz,


Have you generated an application and are testing on a device ? Cordova plugins can only be tested on devices.


Regards

UserImage.jpg
Moritz Niesel

Pedro Costa wrote:

Hi Moritz,


Have you generated an application and are testing on a device ? Cordova plugins can only be tested on devices.


Regards

Hi Pedro,

Thanks for your quick answer!
Jeah I tried it and still get the same Error Message.

Do I have to do something else than creating a Button with the logic above?

Greetings

Moritz


2022-07-12 16-41-57
Pedro Costa

Hi Moritz, 

This error occurs because the ADAL library (script) was not loaded. And it can happen for 3 reasons.

1. You are testing in browser instead of native app on device.

2. Not having regenerated the app after adding references to the component.

3. Be using a discontinued version.

UserImage.jpg
Moritz Niesel

Hi Pedro,

I have generated the app and tested it with the OutSystems Now app on my mobile device.
Also I downloaded the latest ADAL Plugin and still get the Error.

2022-07-12 16-41-57
Pedro Costa

I'm sorry, but i don't tested this component with Outsystems Now app


It's android device ? Can you try installing native app ? 


Thanks

UserImage.jpg
Moritz Niesel

Hi Pedro,

Now I installed the application and it works!

Thank you very much!


Edit:

It says my Username/Password is incorrect. Does that have something to do with Azure configuration?

Greetings Moritz

UserImage.jpg
Dave Curtis

Hi,

What url do I use for the redirecturl input field.


Thanks Dave

2022-07-12 16-41-57
Pedro Costa

Hi Dave,

You must enter the same URL when you created your azure app


Regards

UserImage.jpg
Dave Curtis

Thanks Pedro,

We are now getting an exception "Microsoft is not defined". We have re-generated the android app. however this makes no difference.

Thanks Dave


2022-07-12 16-41-57
Pedro Costa

Hi Dave,


Are you using a latest version of the component?

This error message usually happens when the application is not regenerated and reinstalled on the device. Validate if you generated and installed the latest version


Regards

UserImage.jpg
Dave Curtis

Hi Pedro,

The issue was we were testing via Outsystems Now app rather than native. 

With Android native we can how reach the Microsoft login page however when we login we are now getting a IDX10803 and IDX10108 exception.

See below. Any ideas ?


Thanks Dave


2022-07-12 16-41-57
Pedro Costa

Hi Dave,


Your Redirect URI configured is Https ?

UserImage.jpg
Dave Curtis

Hi Pedro,

Yes, Redirect URI configured is Https


UserImage.jpg
Dave Curtis

Hi Pedro,

We have found the solution. We needed to add site.Client_IdentityProvider to your plugin. 

The first exception above has no url before ".well-known/openid-configuration".

We could probably add this to the e-space site properties for the ADALPlugin.


Dave


2018-06-15 00-21-10
Pedro Vila Nova

Hi

now have other error:  



Any tip?

Best regards,
PVN

2022-07-12 16-41-57
Pedro Costa

Hi Pedro,


Did you add permissions for graph on azure portal?

Is the ResourceURI you are using is https://graph.windows.net?


Thanks

2018-06-15 00-21-10
Pedro Vila Nova

Hello Pedro,

im trying with  : https://graph.windows.com,


Because of this thread : https://www.outsystems.com/forums/discussion/52304/microsoft-graph-instead-of-azure-ad-graph/

Best Regards,
Pedro Vila Nova



UserImage.jpg
Harish Yerra

Hi Team,

We have used ADAL for authentication , to maintain session for long time we have used persistant login as described in the documentation, for username : ADALLogin.LocalADALUser.UniqueId, password : ADALLogin.LocalADALUser.UniqueId and rememberLogin : True. we are passing.But we are getting invalid username or password.What else we have missed to maintain long session for application, Please suggest us.


Thanks

Harish


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.