Method: BitBucket::Authorization#authentication
- Defined in:
- lib/bitbucket_rest_api/authorization.rb
#authentication ⇒ Object
Select authentication parameters
17 18 19 20 21 22 23 24 25 |
# File 'lib/bitbucket_rest_api/authorization.rb', line 17 def authentication if basic_auth? { :basic_auth => basic_auth } elsif login? && password? { :login => login, :password => password } else { } end end |