File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def initialize(*args, **options)
4949 # Wraps OAuth2::Client#get_token to pass in the omniauth-slack AccessToken class.
5050 def get_token ( params , access_token_opts = { } ) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
5151 debug { "params #{ params } , access_token_opts #{ access_token_opts } " }
52- rslt = super ( params , access_token_opts , access_token_class )
52+ rslt = super ( params , access_token_opts )
5353 debug { "Client #{ self } built AccessToken #{ rslt } " }
5454 rslt
5555 end
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ class Slack < OmniAuth::Strategies::OAuth2
4040
4141 # OAuth2::Client options.
4242 option :client_options , {
43+ access_token_class : OmniAuth ::Slack ::OAuth2 ::AccessToken ,
4344 auth_scheme : :basic_auth ,
4445 authorize_url : '/oauth/v2/authorize' ,
45- extract_access_token : OmniAuth ::Slack ::OAuth2 ::AccessToken ,
4646 history : Array . new ,
4747 raise_errors : false , # MUST be false to allow Slack's get-token response from v2 API.
4848 site : 'https://slack.com' ,
You can’t perform that action at this time.
0 commit comments