lib/soaspec/o_auth2.rb in soaspec-0.1.12 vs lib/soaspec/o_auth2.rb in soaspec-0.1.13
- old
+ new
@@ -23,9 +23,15 @@
attr_accessor :params
# @attr [Integer] Count of tries to obtain access token
attr_accessor :retry_count
# @param [Hash] params_sent Parameters to make OAuth request
+ # @param_value [token_url] URL to retrieve OAuth token from. @Note this can be set globally instead of here
+ # @param_value [client_id] Client ID
+ # @param_value [client_secret] Client Secret
+ # @param_value [username] Username used in password grant
+ # @param_value [password] Password used in password grant
+ # @param_value [security_token] Security Token used in password grant
# @param [String] api_username Username to use which can be set by Soaspec::ExchangeHandler
def initialize(params_sent, api_username = nil)
params = params_sent.transform_keys_to_symbols
params[:token_url] ||= Soaspec::OAuth2.token_url
raise 'client_id and client_secret not set' unless params[:client_id] && params[:client_secret]
\ No newline at end of file