Module: Bucketkit::Authentication

Included in:
Client
Defined in:
lib/bucketkit/authentication.rb

Instance Method Summary collapse

Instance Method Details

#basic_authenticated?Boolean



3
4
5
# File 'lib/bucketkit/authentication.rb', line 3

def basic_authenticated?
  !!(@login && @password)
end

#oauth_authenticated?Boolean



7
8
9
# File 'lib/bucketkit/authentication.rb', line 7

def oauth_authenticated?
  !!@oauth_tokens
end

#user_authenticated?Boolean



11
12
13
# File 'lib/bucketkit/authentication.rb', line 11

def user_authenticated?
  basic_authenticated? || oauth_authenticated?
end