Module: Garage::Strategy::AuthServer

Extended by:
ActiveSupport::Concern
Defined in:
lib/garage/strategy/auth_server.rb

Defined Under Namespace

Modules: Cache Classes: AccessTokenFetcher, NoUrlError, Response

Instance Method Summary collapse

Instance Method Details

#access_tokenObject



16
17
18
19
20
21
22
# File 'lib/garage/strategy/auth_server.rb', line 16

def access_token
  if defined?(@access_token)
    @access_token
  else
    @access_token = AccessTokenFetcher.fetch(request)
  end
end

#verify_permission?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/garage/strategy/auth_server.rb', line 24

def verify_permission?
  true
end