class OmniAuth::Strategies::BCX

Public Instance Methods

authorize_params() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/bcx.rb, line 14
def authorize_params
  super.tap do |params|
    params[:response_type] = "code"
    params[:client_id] = client.id
    params[:redirect_uri] ||= callback_url
    params[:type] = "web_server"
  end
end
callback_url() click to toggle source
# File lib/omniauth/strategies/bcx.rb, line 51
def callback_url
  full_host + script_name + callback_path
end
raw_info() click to toggle source
# File lib/omniauth/strategies/bcx.rb, line 47
def raw_info
  @raw_info ||= deep_symbolize(access_token.get("/authorization.json").parsed)
end
token_params() click to toggle source
# File lib/omniauth/strategies/bcx.rb, line 37
def token_params
  OmniAuth::Strategy::Options.new(
    code: request.params["code"],
    redirect_uri: callback_url,
    client_id: client.id,
    client_secret: client.secret,
    type: "web_server"
  )
end