32
Views
6
Comments
How can I login with the ID and password of an external system?
Application Type
Reactive
Service Studio Version
11.54.63 (Build 63337)
Platform Version
11.28.0 (Build 43201)

Hi,

How can I login with the ID and password of an external system? External systems user password encrypt with MD5. I want to login with external username and password. and I have the encrypt code of the external system in JavaScript.

Thanks,

2025-02-10 17-24-13
Arun Rajput

Hi,

First you need to validate the user in external system once it's validate and it's valid user then create same user in user table now you can login using User Id.

Note: Before creating the user in user table first check if user already exist if not then only create.

You have to manage flag to identify that user is already exist in system or not.

Thanks

UserImage.jpg
minjung Yuk

Hi Arun,

Thank you 
Are there any apps on Forge that I can refer to ? I am having difficulty implementing the logic 

Thanks,

2019-01-07 16-04-16
Siya
 
MVP

Logic is straightforward as mentioned by @Arun Rajput . btw do you face difficulty with the logic - consuming the external service, creating users , calculation MD5 ?

UserImage.jpg
minjung Yuk


Users need to be able to input their IDs and passwords, which are used for external services, into the system implemented with OutSystems. The passwords for the external system are encrypted(md5), and I have the encryption hash and key values used by the external service. How can I encrypt the password entered by the user using the same key and compare it with the existing password in the external system?


2025-02-10 17-24-13
Arun Rajput

Hi Minjung,

You don't need to store passwords in outsystems as user is not going to validate in outsystems but you need to store response of external service which is returned by it once user is verified.

There should be one value in response which should be unique so you can check that user is already exist in system or not.

Once this all done you just need userid to login the user into site.

You can use built in servers action of Outsystems "Login" here you just need to pass the id and user will be able to login.

Best

Arun

2019-01-07 16-04-16
Siya
 
MVP

You can use the Reactive MD5 hash calculator forge component to calculate the MD5 hash on the client side. Modify your login page to call this function and calculate the MD5 hash of the password. Send your username and the MD5 hashed password to the server. Then, call your external service for authentication. If authentication is successful, check if the username exists in the Users entity. If it is not present, create a user using the CreateUser action. Finally, log in with the returned UserId.

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