Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Nuno
28
Views
3
Comments
User authentication using other sources
Question
Hi,
My web app needs to get User login info from other source (eg. webservice, db). How can I manage to make it work with the actual User entity management?
Nuno
Tiago Gafeira
Champion
Hi Nuno,
First of all, let me welcome you to the community.
Regarding your question, here is a sample of a possible login flow for your application.
It starts with a call to the
User_Authenticate
user action that encapsulates the logic of validating user credentials in the foreign provider. If the user credentials are incorrect an error message is shown to the user, otherwise the flow continues.
Since we need a the user to exist in the platform in order to do the Login, first we test if there's a user with the provided username in the DB. If true, we use the
Login
system action to authenticate the user in the platform, otherwise we call the
User_Create
user action that implements the logic of creating a platform user with data gathered from external systems.
Hope it helps. Regards,
Tiago.
Nuno
I wasn't sure about the fact that the user must be created in our User entity.
I'll try your approach.
Thanks!
Nuno
Robert Chanphakeo
Nuno wrote
:
Hi,
My web app needs to get User login info from other source (eg. webservice, db). How can I manage to make it work with the actual User entity management?
Nuno
Correct me if I am wrong, you would like to authenicate via external user credientals and have them login to your outsystems application?
You can authenicate via web service via a custom action, if successful, sync your external user with outsystems user table.
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...