Official Content

Login retries to lock user (&GAMRepository.LoginAttemptsToLockUser) is a GAM Repository property used to specify the number of login failures until the user is locked.

This property by default is set to 0, this means that regardless of the number of login attempts the user will never be blocked.

As of GeneXus 18 Upgrade 10 this property is also taken into account for login attempts through the oauth/access_token and oauth/gam/v2.0/access_token services.

Sample

The way to use it in GeneXus code (by using the GAM API) is the following:

&GAMRepository.LoginAttemptsToLockUser = 2

For example, if you make more than 2 unsuccessful attempts using the oauth/access_token service, you will get the following message:

{
    "error": {
        "code": "10",
        "message": "User blocked. Please contact the application administrator."
    }
}

When blocked, the user needs to be un-blocked by the Administrator of GAM Backoffice

See GAM Unblock User Timeout property as another way to unblock user sessions.

See Also

Login attempts to lock session Repository property
GAM Unblock User Timeout property
GAM Repository features and properties

Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant