End-Users Authentication fails

Hi,

In my personal environment I added 3 users through the 'Users' app.

Authentication is set to 'Internal Only'

However, when trying to access pages that are only for registered users, the login fails.

I can see the users in the 'Users' app. They are defined without Roles.

The only user that can login into the registered pages of the App is myself, i.e. with the credentials of the Admin.

Any ideas what's wrong?

Thanks!

What value do you have set in the user provider property of the module? 

where do I find this property?


It's set to 'Users'

Why did you set  internal users only to true ? 

Normally this is set to false , unless you want Restrict Access to an Internal Network.

Edit: Can you provide sample OML ?

RK333 wrote:

Hi,

In my personal environment I added 3 users through the 'Users' app.

Authentication is set to 'Internal Only'

However, when trying to access pages that are only for registered users, the login fails.

I can see the users in the 'Users' app. They are defined without Roles.

The only user that can login into the registered pages of the App is myself, i.e. with the credentials of the Admin.

Any ideas what's wrong?

Thanks!

What is the error you received?did you check the logs in Service Center?


Can you Upload the oml so we could check on our side?

attached the oml.

The error i'm getting is: 'Invalid username or password'


RK333 wrote:

attached the oml.

The error i'm getting is: 'Invalid username or password'


try to reset the password, maybe is a mismatch or a wrong password, did you debug the application where the error occurs?


I've reset the passwords multiple times and it didnt work.

How can I debug the Login section of the App?

RK333 wrote:

I've reset the passwords multiple times and it didnt work.

How can I debug the Login section of the App?

add a breackpoint on No Permition preparation and Login action, and check if the information where appear the error



Have you given this role to the other users?

Pedro Neto wrote:


Have you given this role to the other users?

No. There is 1 admin and the rest of the users are end-users. The Admin cant login as well.


when I debug it shows that it doesnt have a match for username or password. 

I can see the credentials in 'Locals' and they are OK.


RK333 wrote:

when I debug it shows that it doesnt have a match for username or password. 

I can see the credentials in 'Locals' and they are OK.



Did you create that user trough users application ? 

If you go to https://yourenvironment.outsystemscloud.com/users do you see that user listed there? Pay attention that email and username are two separate fields.


RK333 wrote:

when I debug it shows that it doesnt have a match for username or password. 

I can see the credentials in 'Locals' and they are OK.


This user "johnsmith@gmail.com" is your admin user or the user associate with your developer user or this is a created user, I mean an end-user created in the user application? If you see in this pic from my users application, the end-user has a different username isn't their emails, just mine developer user uses the username as my email. possible you are mismatch the proper username and instead your using the email

Enter in your user app and check if the username for this user is correct. 

Thank you both for your help , it's now OK!

Indeed I used the email and not the username to login, although I'm pretty sure that in all my tries i also tried to use the username...

Anyway, why does the Login page asks for email & password by default?

It's quite confusing...

Where do I change this?

Thanks again!


RK333 wrote:

Thank you both for your help , it's now OK!

Indeed I used the email and not the username to login, although I'm pretty sure that in all my tries i also tried to use the username...

Anyway, why does the Login page asks for email & password by default?

It's quite confusing...

Where do I change this?

Thanks again!


This is about the configuration on your page in general, you can change the login page and add the word "Username"

Good I could help you.

So if my solution or ideas was the one that best solved your problem, please mark my answer as the solution and help me to grow my rank in the community but if not, mark as Solution the answer that best helps you to solve the problem, thanks and good code


Another question on Users - 

Once I define a user in the 'Users' app - is it becoming a registered user for all the Apps in my environment?

What is the method to register a user only to a single App? 

Solution

RK333 wrote:

Another question on Users - 

Once I define a user in the 'Users' app - is it becoming a registered user for all the Apps in my environment?

What is the method to register a user only to a single App? 

Yes if you check the roles "Registered", you can achieve that removing the anonymous and registered roles and adding a specific role to the user, then you must  to check the role so the  user has proper permission to access the page/app, or create specific code on your action flow to allow or not the user do an action or edit a form for example


Solution

Understood. Thanks!

RK333 wrote:

Understood. Thanks!

Welcome!