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

Support for ephemeral credentials #941

Merged
merged 1 commit into from
Jul 20, 2021
Merged

Support for ephemeral credentials #941

merged 1 commit into from
Jul 20, 2021

Conversation

luis-claro
Copy link

@luis-claro luis-claro commented Jul 19, 2021

Currently, SIP.js uses the provided credentials to authenticate during the entire session. However, if we want to have ephemeral credentials, we need a way to rotate these credentials during the same session to perform reREGISTER operations.

The goal of this pull request is to improve SIP.js in order to provide a way to obtain credentials in a more dynamic way, i.e. allowing to provide a function that will return the appropriate credentials whenever the (re)authentication is required.

Copy link
Collaborator

@etamme etamme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, not sure why the build is failing on DTMF tests, but assuming the tests get clean runs this is a nice addition.

@egreenmachine
Copy link
Collaborator

Random failure. I reran the tests and all is now good.

@luis-claro luis-claro marked this pull request as ready for review July 20, 2021 07:44
@luis-claro
Copy link
Author

Thanks. 👍
Can this PR be merged?🙏
I don't have write access.

@etamme etamme merged commit 5cf8056 into onsip:master Jul 20, 2021
@luis-claro
Copy link
Author

Hi! 👋
Do you have an estimated date for a new release that includes this feature? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants