File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def revoke_channel_token(access_token)
104
104
105
105
# Issue channel access token v2.1
106
106
#
107
- # @param grant_type [String] jwt
107
+ # @param jwt [String]
108
108
#
109
109
# @return [Net::HTTPResponse]
110
110
def issue_channel_access_token_21 ( jwt )
@@ -132,8 +132,8 @@ def revoke_channel_access_token_21(access_token)
132
132
133
133
endpoint_path = '/oauth2/v2.1/revoke'
134
134
payload = URI . encode_www_form (
135
- client_id : client_id ,
136
- client_secret : client_secret ,
135
+ client_id : channel_id ,
136
+ client_secret : channel_secret ,
137
137
access_token : access_token
138
138
)
139
139
headers = { 'Content-Type' => 'application/x-www-form-urlencoded' }
@@ -149,7 +149,7 @@ def get_channel_access_token_key_ids_21(jwt)
149
149
channel_id_required
150
150
channel_secret_required
151
151
152
- endpoint_path = '/oauth2/v2.1/kid'
152
+ endpoint_path = '/oauth2/v2.1/tokens/ kid'
153
153
payload = URI . encode_www_form (
154
154
grant_type : 'client_credentials' ,
155
155
client_assertion_type : 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer' ,
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def generate_client
95
95
96
96
client = generate_client
97
97
98
- response = client . revoke_channel_access_token_21 ( 'sDTOzw5wIfxxxxPEzcmeQA' ) :
98
+ response = client . revoke_channel_access_token_21 ( 'sDTOzw5wIfxxxxPEzcmeQA' )
99
99
100
100
expect ( response ) . to be_a ( Net ::HTTPOK )
101
101
end
You can’t perform that action at this time.
0 commit comments