Module: MgmtConsole::Authentication

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

Overview

Authentication methods for Client

Instance Method Summary collapse

Instance Method Details

#token_authenticated?Boolean

Indicates if the client was supplied an OAuth access token



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

def token_authenticated?
  !!@access_token
end

#user_authenticated?Boolean

Indicates if the client was supplied an access token

Returns:

  • (Boolean)


18
19
20
# File 'lib/mgmt_console/authentication.rb', line 18

def user_authenticated?
  token_authenticated?
end