647
Views
7
Comments
How can I skip the default User_Login and do the Auth by my own API ?
Question

I would like to do the login authentication via API instead of using the default User_Login action.

May I know how I can deal with it ?

mvp_badge
MVP
Rank: #6

Hello,

Afaik, doesn't matter if you are doing login by your own API, you always have to also login in OutSystems.
 
One of the reasons is that the LICENSE imposes a number of users, and trying to avoid this in order to enable more users is not allowed.

Cheers.

mvp_badge
MVP
Rank: #14

Not entirely true,


an anonymous session is a session, so you might grant roles to that anonymous user and have your own session-variable to keep track of that external-userid.

if it's wise is another thing (and it still counts to the number of users in your license afaik)



Have you marked the Homescreen as anonymous? If you do not have an Outsystems login, you need to mark it as anonymous otherwise you will be redirected to the login page even if you validated the login with your own logic.


If for any reason you still need an Outsystems login (role control for example) you can use the System Server Acton "Login" which allows you to login a user without any password to login a generic user. (The use of the login action is discouraged because it does create a security risk so you have to be very careful when managing active users, but it is available for your use).


Regards,

   CLSJ



mvp_badge
MVP
Rank: #6

Hi Kilian

I was unsure about the license.

So, in short:

1. You are not required to login in the plataform using the System login.

2. No matter what login system you use, the number of named users must be respected.

Yes. I undestand that avoiding using the system login increases the development's complexity and is not advisable anyway.

Thanks! :)

mvp_badge
MVP
Rank: #2

Eduardo,

Ianal, and the last time I actually looked at the licence/contract was a couple of years ago, but I was then struck by them not having defined "named users" in any way :).