Hi,
I am using the onion_handler_auth_pam function to log in to my webapp, but I have not been able to find a way to log out of the PAM session without closing the browser. The PAM authorization window with the user/password prompt only appears once, no matter what session data I clear or delete. I deleted all the cookies as well, and it does not seem to make a difference.
The handlers are
onion_handler *authenticateLoginHandle = onion_handler_new((onion_handler_handler)authenticateLogin, (void*)dirname, NULL);
onion_handler *pamAuthenticatedHandle = onion_handler_auth_pam("login", "login", authenticateLoginHandle);
onion_url_add_handler(webUrl, "@=login", pamAuthenticatedHandle);
Then, the function that is called after the PAM authentication has this signature.
onion_connection_status authenticateLogin(void *data, onion_request *req, onion_response *res)
{
}
My question is, how can i erase the PAM data so that when I go to the "@=login" URL, the authentication window with the user/password appears again. i.e., how do i do the PAM logout?
Thank you.