I'm looking for a configuration option in PolicyKit that allows me to extend the time that needs to pass for a password to be requested again, in a similar way you can with sudo.
Looking at the polkit manual I could see that one can use auth_admin_keep, which will grant privileges for a particular action during "a brief period (e.g. five minutes)."
So I would like to know if a) this period is configurable and b) it can be extended across all the actions.
The final purpose here is of course to avoid having to enter the password too many times. The ideal solution that balances security and convenience would be to expire the password every (e.g.) fifteen minutes, no matter the actions you are trying to accomplish. For instance if you type sudo echo x in a terminal and you enter your password, if right after that you want to install some application using a graphical interface, you should not be prompted for your password again (unless it has expired).