Module: KeycloakRack

Defined in:
lib/keycloak_rack.rb,
lib/keycloak_rack/types.rb,
lib/keycloak_rack/config.rb,
lib/keycloak_rack/import.rb,
lib/keycloak_rack/railtie.rb,
lib/keycloak_rack/session.rb,
lib/keycloak_rack/version.rb,
lib/keycloak_rack/role_map.rb,
lib/keycloak_rack/container.rb,
lib/keycloak_rack/middleware.rb,
lib/keycloak_rack/read_token.rb,
lib/keycloak_rack/wrap_token.rb,
lib/keycloak_rack/http_client.rb,
lib/keycloak_rack/key_fetcher.rb,
lib/keycloak_rack/with_config.rb,
lib/keycloak_rack/authenticate.rb,
lib/keycloak_rack/key_resolver.rb,
lib/keycloak_rack/decoded_token.rb,
lib/keycloak_rack/authorize_realm.rb,
lib/keycloak_rack/flexible_struct.rb,
lib/keycloak_rack/decode_and_verify.rb,
lib/keycloak_rack/resource_role_map.rb,
lib/keycloak_rack/authorize_resource.rb,
lib/keycloak_rack/skip_authentication.rb

Overview

Authorize Keycloak tokens via rack middleware.

Defined Under Namespace

Classes: Authenticate, AuthorizeRealm, AuthorizeResource, Config, DecodeAndVerify, DecodedToken, FlexibleStruct, HTTPClient, KeyFetcher, KeyResolver, Middleware, Railtie, ReadToken, RoleMap, Session, WrapToken

Constant Summary collapse

VERSION =

Gem version

"1.1.1"
ResourceRoleMap =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

A type to define a map of RoleMaps keyed by resource type.

Types::Hash.map(Types::String, RoleMap).default { { "account" => {} } }

Class Method Summary collapse

Class Method Details

.configure {|config| ... } ⇒ void

Note:

Changes using this format will overwrite values inherited from ENV or config files.

This method returns an undefined value.

Configure the gem manually.

Yields:

  • (config)

    configure the gem

Yield Parameters:

Yield Returns:

  • (void)

49
50
51
# File 'lib/keycloak_rack.rb', line 49

def configure
  yield config
end