By: Sidharth Nair user 09 Dec 2019 at 2:25 a.m. CST

3 Responses
Sidharth Nair gravatar
Is there a way to add an attribute to capture the IP address the user used to login?

By Mohit Mali staff 09 Dec 2019 at 2:39 a.m. CST

Mohit Mali gravatar
hi Sidharth Nair, thank you for reaching out gluu support , i will assist you on this ticket , let me pull right information on your query and get back to you. thanks and regards Mohit Mali

By Mohit Mali staff 09 Dec 2019 at 2:54 a.m. CST

Mohit Mali gravatar
hi Siddharth, Here is the answer for your query, You can add custom attribute for saving ip address and use them in custom auth script to capture and stored in db. here is the example in which we fetch ip address for auth script please have a look https://github.com/GluuFederation/oxAuth/blob/master/Server/integrations/allowed_countries/allowed_countries.py#L58 thanks and regards Mohit Mali

By Sidharth Nair user 09 Dec 2019 at 2:58 a.m. CST

Sidharth Nair gravatar
Thanks!