-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add SIP API support #63
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lg, and thanks for fixing the video grants
lib/livekit/auth_mixin.rb
Outdated
def auth_header( | ||
video_grant, | ||
sip_grant: nil | ||
) | ||
headers = {} | ||
t = ::LiveKit::AccessToken.new(api_key: @api_key, api_secret: @api_secret) | ||
t.add_grant(video_grant) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we handle passing in a nil video grant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does work right now by constructing a default video grant but I can handle the case explicitly, yes
This also makes the
VideoGrant
constructor call withinauth_header
calls explicit for clarity.