Class: RestEasy::Auth::Null
- Inherits:
-
Object
- Object
- RestEasy::Auth::Null
- Defined in:
- lib/rest_easy/auth/null.rb
Overview
No-op auth for APIs that don’t require authentication, or when auth is handled at the transport level (e.g. mTLS).
Instance Method Summary collapse
Instance Method Details
#apply(request) ⇒ Object
8 9 10 |
# File 'lib/rest_easy/auth/null.rb', line 8 def apply(request) # no-op end |
#on_rejected(response) ⇒ Object
12 13 14 |
# File 'lib/rest_easy/auth/null.rb', line 12 def on_rejected(response) raise RestEasy::RequestError.new(response) end |