Skip to content

Commit

Permalink
fixup! Send access_token_class as client option
Browse files Browse the repository at this point in the history
  • Loading branch information
ozmar-salesloft committed Sep 29, 2022
1 parent 729c7b1 commit 0e86aca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/omniauth-slack/oauth2/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def initialize(*args, **options)
# Wraps OAuth2::Client#get_token to pass in the omniauth-slack AccessToken class.
def get_token(params, access_token_opts = {}) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
debug{"params #{params}, access_token_opts #{access_token_opts}"}
rslt = super(params, access_token_opts, access_token_class)
rslt = super(params, access_token_opts)
debug{"Client #{self} built AccessToken #{rslt}"}
rslt
end
Expand Down
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/slack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ class Slack < OmniAuth::Strategies::OAuth2

# OAuth2::Client options.
option :client_options, {
access_token_class: OmniAuth::Slack::OAuth2::AccessToken,
auth_scheme: :basic_auth,
authorize_url: '/oauth/v2/authorize',
extract_access_token: OmniAuth::Slack::OAuth2::AccessToken,
history: Array.new,
raise_errors: false, # MUST be false to allow Slack's get-token response from v2 API.
site: 'https://slack.com',
Expand Down

0 comments on commit 0e86aca

Please sign in to comment.