Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fresta committed Jun 3, 2012
1 parent 29c326a commit a4ac278
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions lib/omniauth/strategies/stripeplatform.rb
Expand Up @@ -15,26 +15,28 @@ class StripePlatform < OmniAuth::Strategies::OAuth2
:authorize_url => '/oauth/authorize',
:token_url => '/oauth/token'
}

option :token_params, {
:parse => :query
}


option :access_token_options, {
:header_format => "OAuth %s",
:param_name => 'access_token'
}
:header_format => "OAuth %s",
:param_name => 'access_token'
}

option :authorize_params, {
:header_format => "Bearer %s(:client_secret)"
}
option :authorize_params, {
:header_format => "Bearer %s(:client_secret)"
}


def request_phase
authorize_params[:headers] = "Authorize: Bearer #{client.secret}"
def request_phase
authorize_params[:headers][:authorize] = "Bearer #{client.secret}"
redirect client.auth_code.authorize_url({:redirect_uri => callback_url}.merge(authorize_params))
end



uid{ raw_info['id'] }


Expand Down

0 comments on commit a4ac278

Please sign in to comment.