Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment nonce count and get auth method from message being sent. #421

Merged
merged 1 commit into from
Nov 8, 2019

Conversation

codyherzog-zz
Copy link
Contributor

Hello.

I'm trying to address two digest authentication issues I've encountered while executing several of my scenarios.

1.) SIPp currently doesn't support incrementing the nonce count to keep an ongoing authenticated call alive without being re-challenged on every request. In several of my scenarios, this was resulting in undesired challenges. The nonce count changes are based on an old patch I found here:

https://sipp-users.narkive.com/6Gl681EP/patch-to-correctly-increment-nc-in-authorization-header

2.) In some of my scenarios which mix different SIP request methods, I was having some unexpected authentication failures. I tracked it down to the method being used to generate the auth hashes not matching the method of the message being sent.

The old way of getting the auth method from the CSeq of the last header would fail if the previous message sent was a different method than the current message being sent. It seems simple and safe to just use the method of the message being sent when generating the auth hashes.

Thanks for the consideration.

Nonce count changes are based on the patch described here:

https://sipp-users.narkive.com/6Gl681EP/patch-to-correctly-increment-nc-in-authorization-header

The old way of getting the auth method from the CSeq of the last header would fail if the previous message sent was a different method than the current one. It seems simple and safe to just use the method of the message being sent.
@wdoekes wdoekes added this to the 3.6 milestone Oct 30, 2019
@wdoekes wdoekes added the bug label Oct 30, 2019
@codyherzog-zz
Copy link
Contributor Author

Hello.

At your convenience, please let me know if you'd like any additional information about these changes.

Thanks very much.

@wdoekes wdoekes merged commit aa43e73 into SIPp:master Nov 8, 2019
@wdoekes
Copy link
Member

wdoekes commented Nov 8, 2019

The changes look sane, so I think this is good to go.

Thanks!

@codyherzog-zz codyherzog-zz deleted the auth-fixes branch November 8, 2019 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants