Class: ApipieBindings::Authenticators::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/apipie_bindings/authenticators/base.rb

Direct Known Subclasses

BasicAuth, CredentialsLegacy, Negotiate, Oauth, TokenAuth

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

In case an authenticator needs to make an authentication call before the original one you might want to set auth_cookie returned by the server to be available for futher processing (e.g. saving the session id) since it may contain session id to use with all the next calls



9
10
11
# File 'lib/apipie_bindings/authenticators/base.rb', line 9

def auth_cookie
  @auth_cookie
end

Instance Method Details

#authenticate(request, args) ⇒ Object



11
12
# File 'lib/apipie_bindings/authenticators/base.rb', line 11

def authenticate(request, args)
end

#error(ex) ⇒ Object



14
15
# File 'lib/apipie_bindings/authenticators/base.rb', line 14

def error(ex)
end

#nameObject



20
21
22
# File 'lib/apipie_bindings/authenticators/base.rb', line 20

def name
  self.class.name
end

#response(r) ⇒ Object



17
18
# File 'lib/apipie_bindings/authenticators/base.rb', line 17

def response(r)
end