Get authentication action from outsystems to another app

Hi all,

          I have an app 'A' created  in outsystems and also have an second app 'B' which is built in native. I have login authentication in 'A' app, and have to authenticate an user with the same credentials from app 'A'. 

    For example: 

credentials in app 'A':

username : XYZ@abc.com

password : ABC@123

If a user installs the 'B' app, i will  check if the username is already exists in 'A' app and if yes user have to enter password and if he logs in, i will check the username and password in the 'A' app's authentication and make the user gets logged in to the 'B' app.

So basically, if a user has a login in 'A' app, user also can log in to 'B' app.

So can I expose the authenticate action from outsystems and call that action from the app 'B'.?

Can someone give solutions or an suggestion.?

Thanks in advance.


Hi Kaarthick,

in OutSystems every end user stored in the Users entity. That means user 'XYZ@abc.om' can log in to application A also B with the same credentials. You can build another action in the native application or you can expose an action from application A and use it in native for authorization.

If you want to separate Users for every application, you can use Tenants or you can use roles.

Best Regards,
Ferhat

Ferhat Karatay wrote:

Hi Kaarthick,

in OutSystems every end user stored in the Users entity. That means user 'XYZ@abc.om' can log in to application A also B with the same credentials. You can build another action in the native application or you can expose an action from application A and use it in native for authorization.

If you want to separate Users for every application, you can use Tenants or you can use roles.

Best Regards,
Ferhat

Hi Ferhat Karatay,

                  Thanks for the reply. How can I expose an action from outsystem to another app? 




Hi Kaarthick,

In the application A you should set your authorization action properties Public and Function to True.
In your action, you can check username and password with input parameters they're correct or not. Or you can design your own business logic.

Then you must reference this action to application B by using manage dependencies.


Best Regards,
Ferhat

Ferhat Karatay wrote:

Hi Kaarthick,

In the application A you should set your authorization action properties Public and Function to True.
In your action, you can check username and password with input parameters they're correct or not. Or you can design your own business logic.

Then you must reference this action to application B by using manage dependencies.


Best Regards,
Ferhat

Hi Ferhat Karatay,

               App 'B' is build with native ,So if I expose this action, can I access this action from the native app.?

Thanks,

Kaarthick.


Hi Kaarthick,

Yes, it's possible because native apps also can use server actions here is an example.
This is my web application exposing an action.


I'm calling the action from the mobile application

Here is the result


Ferhat Karatay wrote:

Hi Kaarthick,

Yes, it's possible because native apps also can use server actions here is an example.
This is my web application exposing an action.


I'm calling the action from the mobile application

Here is the result


Hi Ferhat Karatay,

                     Thanks. I will try above in my app with this method as reference. Can I access this action from outsystems with an URL?

Regards,

Kaarthick.