File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ def credentials
63
63
#
64
64
# @return [Net::HTTPResponse]
65
65
def issue_channel_token ( grant_type = 'client_credentials' )
66
+ channel_id_required
67
+ channel_secret_required
68
+
66
69
payload = URI . encode_www_form (
67
70
grant_type : grant_type ,
68
71
client_id : channel_id ,
@@ -616,6 +619,14 @@ def secure_compare(a, b)
616
619
def channel_token_required
617
620
raise ArgumentError , '`channel_token` is not configured' unless channel_token
618
621
end
622
+
623
+ def channel_id_required
624
+ raise ArgumentError , '`channel_id` is not configured' unless channel_id
625
+ end
626
+
627
+ def channel_secret_required
628
+ raise ArgumentError , '`channel_secret` is not configured' unless channel_secret
629
+ end
619
630
end
620
631
end
621
632
end
You can’t perform that action at this time.
0 commit comments