Module: Fresh::Auth::Authentication

Defined in:
lib/fresh/auth/authentication.rb

Instance Method Summary collapse

Instance Method Details

#AuthenticateWithFreshbooksObject


9
10
11
12
13
14
15
# File 'lib/fresh/auth/authentication.rb', line 9

def AuthenticateWithFreshbooks
  @redirect_url = request.url.split("?")[0]
  if !session.has_key? Key::SESSION
    Request() and return if !params.has_key? Key::VERIFIER
    Access() and redirect_to @redirect_url
  end
end