By: ved singh user 31 Mar 2018 at 11:15 p.m. CDT

3 Responses
ved singh gravatar
Hi, I was going over the account lockout features [here](https://gluu.org/docs/ce/3.1.1/authn-guide/lockout/) and would like to know : - Is there a possibility to send email notification on lockout ? - Is there a possibility to let Service Provider know about the lockout like invoking some endpoint(REST) exposed by SP. We don't want to use web UI to re-enable the account, instead use SCIM api to make account as active.But the question is how will SP know that the account is locked? Thanks Ved

By Aliaksandr Samuseu staff 01 Apr 2018 at 12:15 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Ved. Lockout feature is implemented with custom authentication script written in Jython, so whatever functionality is possible to code using Jyhon can be added to it. I can't see any difficulties in using some libraries for REST calls or sending emails from within the script. Please note though that Community support doesn't cover custom script development, but [there are plenty examples](https://github.com/GluuFederation/oxAuth/tree/master/Server/integrations) of custom scripts you can study.

By ved singh user 01 Apr 2018 at 12:40 p.m. CDT

ved singh gravatar
Thanks Aliaksandr.

By ved singh user 02 Apr 2018 at 4:37 p.m. CDT

ved singh gravatar
Hi Aliaksandr, As per the section "Adding Libraries" [here](https://gluu.org/docs/ce/3.1.1/authn-guide/customauthn/#adding-libraries) We can put custom jar file under "/opt/gluu/jetty/oxauth/lib/ext" When I added the jar, I was not able to get the admin console up and the system is redirecting to "/identity/error" page. Im getting this error --> [link](https://drive.google.com/open?id=1UspL9L7C4bCrgKLZCuii84s7Qw669QTR) Any clue why this must be happening. I'm able to run the imported jar from a test python script. Thanks