329
Views
9
Comments
Query another entity in default login page instead of only users

I have multiple Entities with different roles, and not just User how can I join my other entities to the default login page of outsystems so i can authenticate other entities to login page

2023-12-07 07-51-40
Remco Dekkinga
 
MVP

Hi Christian,

You can change the login query to whatever you need. You just have to make sure that the user exists in the Users entity and that you use the User_Login function to create the User Session.

Can you explain exactly what you are trying to build?

Kind regards,

Remco Dekkinga

2020-12-23 11-21-45
C M

What I mean is how will I authenticate another entity on login page that was provided by outsystems.
The only way I see is Either I make my own login page and my own server to somehow authenticate the user.
I have tried editing the e space but I'm having an error. So which one is the better way, making my own login or just edit the e space when the login logic is.

2023-12-07 07-51-40
Remco Dekkinga
 
MVP

Hi Christian,

With the OutSystems Platform it is mandatory to use the Users entity and the User_Login action for authentication of Users, because the license structure of the OutSystems Platform is based on number of users.

In order to login users which need to be authenticated via an external service, you can call the external service, authenticate the user there and return the username of that specific user.

When this username is returned to OutSystems, you can CreateOrUpdate the Users table with this username and use the UserId from OutSystems to login (without password)

For external databases / different entities, you can do the authentication in Outsystems by hand and then also create a copy of the user in the Users entity.

Kind regards,

Remco Dekkinga

2022-08-26 11-04-22
Nitin Chavan

Hi Remco,

We have OKTA authentication using OpenID connect specification. Without using OutSystems User table can we build custom User management framework and session management in OutSystems application?

Regards,

Nitin 

2023-12-07 07-51-40
Remco Dekkinga
 
MVP

Hi Nitin,

Even though my answer is 3 years old. The license structure of OutSystems has not changed on this matter.

It is still not allowed to bypass the OutSystems Users management. I know it is possible, but this is the way OutSystems calculates the usage of the platform, and their business model is built around it. When you try to bypass it, it will work in the short run, but you will get in big trouble in the future.

Kind regards,

Remco Dekkinga

2022-08-26 11-04-22
Nitin Chavan

Thank you for quick reply. 

So for sustainable solution can we say-

Even though we are authenticating user from external provider we should keep entry in Users table?

If we are getting user roles from external authorization provider still we should use(map external role) User roles created in OutSystems? 

Best Regards,

Nitin

2023-12-07 07-51-40
Remco Dekkinga
 
MVP

Hi Nitin,

Yes, this is correct. On authentication in the external system, you should get back a Username and role/group. This should be reflected in the OutSystems Users management entities (User, Role and/or Group). When the external authentication is successful, you can use the Users Login (without password) to log the user in to the OutSystems Users mechanism (role + session is set automatically).

Kind regards,

Remco Dekkinga

UserImage.jpg
SSP

Not sure how to call user_login action on screen after external authentication as password is mandatory in user_login action. Keeping it blank or sending as "" gives error as invalid username and password.

2023-12-07 07-51-40
Remco Dekkinga
 
MVP

OutSystems has changed the location of several actions in the last couple of year.

  • When using the Users > User_Login, you will always need the password.
  • When using the System > Login, you can login without a password.
  • When using the System > LoginPassword, you can login with a password, but the extra security measures (IP-restriction, blocked accounts, etc. are not taken into account).

Preference for security-first implementation is to use the actions from the Users module. When you know exactly what you're doing and understand the security risks, you can use the other two actions too. They will always throw a warning in the TrueChange tab of Service Studio as an extra reminder.

Hope this clarifies your question.

Kind regards,

Remco Dekkinga

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