Class: Hydra::Keycloak::Tokens::Gateway
- Inherits:
-
Object
- Object
- Hydra::Keycloak::Tokens::Gateway
- Extended by:
- Mixin
- Defined in:
- lib/hydra/keycloak/tokens/gateway.rb
Constant Summary collapse
- NETWORK_ERRORS =
[Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, EOFError, Errno::ECONNREFUSED, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError].freeze
Instance Method Summary collapse
Methods included from Mixin
args_inject, container, inject
Instance Method Details
#post(path, body) ⇒ Object
27 28 29 30 |
# File 'lib/hydra/keycloak/tokens/gateway.rb', line 27 def post(path, body) _post(URI(path), body) .bind { |resp| parse_response(resp.body) } end |