Module: Hadley::Authz

Included in:
Middleware
Defined in:
lib/hadley/authz.rb

Overview

This module is both a namespace for modules and classes related to AFID authorization and a collection of useful helper methods that can be mixed in to application controllers / route handlers that need to interact with warden and AFID authorization details.

Defined Under Namespace

Modules: Basic, Bearer, StrategyBuilder Classes: Strategy

Instance Method Summary collapse

Instance Method Details

#wardenWarden::Proxy

A wrapper method that allows cleaner access to the warden proxy

Returns:

  • (Warden::Proxy)

    The warden lazy object equivalent to env['warden'].



14
15
16
# File 'lib/hadley/authz.rb', line 14

def warden
  env['warden']
end