class OmniAuth::Strategies::Webflow

Constants

API_VERSION

Public Instance Methods

raw_info() click to toggle source
# File lib/omniauth/strategies/webflow.rb, line 35
def raw_info
  @raw_info ||= access_token.get("https://api.webflow.com/info?api_version=#{API_VERSION}").parsed
end

Protected Instance Methods

build_access_token() click to toggle source

had to override this method as it was merging the redirect_uri into the params which was breaking the Webflow /access_token request

# File lib/omniauth/strategies/webflow.rb, line 42
def build_access_token
  verifier = request.params["code"]
  client.auth_code.get_token(verifier, token_params.to_hash(:symbolize_keys => true), deep_symbolize(options.auth_token_params))
end