Extend HTTP token to work correctly with PAM authentication