-
Notifications
You must be signed in to change notification settings - Fork 119
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
DEVX-8994: Change default client tokens to JWT #274
base: main
Are you sure you want to change the base?
Conversation
Warning Do not merge/deploy until @dragonmantank has confirmed this can go out. |
lib/opentok/session.rb
Outdated
@@ -28,6 +28,7 @@ module OpenTok | |||
# Generates a token. | |||
# | |||
# @param [Hash] options | |||
# @option options [String] :token_type The type of token to generate. Must be one of 'T1' or 'JWT'. |
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.
@jeffswartz I think we'll need to update the OT docs here and here to cover this new param.
lib/opentok/opentok.rb
Outdated
@@ -36,6 +36,7 @@ module OpenTok | |||
# the token. | |||
# | |||
# @param [Hash] options A hash defining options for the token. | |||
# @option options [String] :token_type The type of token to generate. Must be one of 'T1' or 'JWT'. |
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.
@jeffswartz I think we'll need to update the OT docs here and here to cover this new param.
This PR adds the ability to create JWT client tokens and sets this as the default, with the option to create T1 tokens if the user specifies this. Specifically the PR:
token_type
param in thegenerate_token
method:token_type
param is ommitted, a JWT is generated