Security, forced logout

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
User avatar
jmcgov
Veteran Member
Posts: 79
Joined: 2018-12-19 01:31
Location: Northern Ireland

Security, forced logout

Post by jmcgov » 2019-08-12 09:21

Hi AppGini'rs
I have noticed that there are times when I edit the url (in a naughty way, say to try to access a table I dont have access to) that the application gives me a "not authorised" message and logs me out of the application.
I have also created created a number of scripts, based on Udemy tutorials, including
- keep a record of login activity
- create custom page, and check access rights of the user
I'd like to enhance the above scripts, to auto-logout unauthorised users - is there an inbuilt function I can call, or do I need to create my own?
TIA, James

User avatar
jmcgov
Veteran Member
Posts: 79
Joined: 2018-12-19 01:31
Location: Northern Ireland

Re: Security, forced logout

Post by jmcgov » 2019-08-17 11:54

Anyone ?? :)

bescott53

Re: Security, forced logout

Post by bescott53 » 2019-08-17 20:45

jmcgov, there is an old post about this here: viewtopic.php?f=4&t=40

you might find it useful

User avatar
jmcgov
Veteran Member
Posts: 79
Joined: 2018-12-19 01:31
Location: Northern Ireland

Re: Security, forced logout

Post by jmcgov » 2019-08-20 15:46

Thanks bescott53. Probably reading between the lines, there is no function in the application that I can access from the hooks. Thanks for pointer. JAmes

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Security, forced logout

Post by pbottcher » 2019-08-21 13:36

Hi,

maybe you can call

Code: Select all

logOutUser();
This shall logout the current user.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

User avatar
jmcgov
Veteran Member
Posts: 79
Joined: 2018-12-19 01:31
Location: Northern Ireland

Re: Security, forced logout

Post by jmcgov » 2019-08-28 08:49

Yes pböttcher, thanks

Post Reply