Hello, I was wondering if it is possible to do a failover in digest authentication. For eg: I get two possible valid password values. Can I do a pv_proxy_authenticate in such a way where if authentication fails, I do a pv_proxy_autenticate again on the different value to check if that succeeds? Is it even allowed in digest authentication mechanism. Just getting opinions.
Thanks for any help.
- Jayesh
You can always issue a second challenge that requires different credentials than the first.
On October 28, 2016 7:41:16 AM EDT, Jayesh Nambiar jayesh1017@gmail.com wrote:
Hello, I was wondering if it is possible to do a failover in digest authentication. For eg: I get two possible valid password values. Can I do a pv_proxy_authenticate in such a way where if authentication fails, I do a pv_proxy_autenticate again on the different value to check if that succeeds? Is it even allowed in digest authentication mechanism. Just getting opinions.
Thanks for any help.
- Jayesh
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Alex
-- Principal, Evariste Systems LLC (www.evaristesys.com)
Sent from my Google Nexus.
Hello,
you can do:
if(!pv_auth_check(...passwd1...)) {
if(!pv_auth_check(...passwd2...)) {
# do the challenge
}
}
Cheers, Daniel
On 28/10/16 13:41, Jayesh Nambiar wrote:
Hello, I was wondering if it is possible to do a failover in digest authentication. For eg: I get two possible valid password values. Can I do a pv_proxy_authenticate in such a way where if authentication fails, I do a pv_proxy_autenticate again on the different value to check if that succeeds? Is it even allowed in digest authentication mechanism. Just getting opinions.
Thanks for any help.
- Jayesh
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Thanks Alex for the suggestion. Thanks Daniel, the flow you mentioned worked just as expected.
- Jayesh
On Fri, Oct 28, 2016 at 6:34 PM Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
you can do:
if(!pv_auth_check(...passwd1...)) {
if(!pv_auth_check(...passwd2...)) {
# do the challenge
}
} Cheers, Daniel
On 28/10/16 13:41, Jayesh Nambiar wrote:
Hello, I was wondering if it is possible to do a failover in digest authentication. For eg: I get two possible valid password values. Can I do a pv_proxy_authenticate in such a way where if authentication fails, I do a pv_proxy_autenticate again on the different value to check if that succeeds? Is it even allowed in digest authentication mechanism. Just getting opinions.
Thanks for any help.
- Jayesh
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users