Class: Shaf::Spec::Authenticator

Inherits:
Authenticator::Base show all
Defined in:
lib/shaf/spec/authenticator.rb

Class Method Summary collapse

Methods inherited from Authenticator::Base

challenges_for, inherited, param, params, restricted, scheme, scheme?, user

Class Method Details

.credentials(authorization, _request) ⇒ Object



8
9
10
# File 'lib/shaf/spec/authenticator.rb', line 8

def self.credentials(authorization, _request)
  { id: authorization&.to_i }
end