Module: Dispatch::Auth
- Includes:
- HTTParty
- Defined in:
- lib/dispatch/auth.rb,
lib/dispatch/auth/errors.rb,
lib/dispatch/auth/version.rb
Defined Under Namespace
Classes: NotAuthenticatedError, NotAuthorizedError, TokenMissingError
Constant Summary
collapse
- VERSION =
'0.0.4'
Class Method Summary
collapse
Class Method Details
.authenticate_request!(env) ⇒ Object
9
10
11
12
|
# File 'lib/dispatch/auth.rb', line 9
def authenticate_request!(env)
(env)
resolve_errors get(ENV['AUTH_ENDPOINT_URL'])
end
|
.get_me(env) ⇒ Object
14
15
16
17
|
# File 'lib/dispatch/auth.rb', line 14
def get_me(env)
(env)
resolve_errors get(ENV['AUTH_ENDPOINT_URL'])
end
|