Module: KeycloakOauth

Defined in:
lib/keycloak_oauth.rb,
lib/keycloak_oauth/engine.rb,
lib/keycloak_oauth/version.rb,
lib/keycloak_oauth/endpoints.rb,
lib/keycloak_oauth/connection.rb,
lib/keycloak_oauth/configuration.rb,
app/services/keycloak_oauth/logout_service.rb,
app/services/keycloak_oauth/not_found_error.rb,
app/services/keycloak_oauth/duplication_error.rb,
app/services/keycloak_oauth/get_users_service.rb,
app/services/keycloak_oauth/authorizable_error.rb,
app/services/keycloak_oauth/post_users_service.rb,
app/services/keycloak_oauth/authorizable_service.rb,
app/services/keycloak_oauth/authentication_service.rb,
app/controllers/keycloak_oauth/callbacks_controller.rb,
app/services/keycloak_oauth/post_refresh_token_service.rb,
app/services/keycloak_oauth/authentication_service_base.rb,
app/services/keycloak_oauth/user_info_retrieval_service.rb,
app/services/keycloak_oauth/refresh_authentication_service.rb,
app/services/keycloak_oauth/post_authorization_code_service.rb,
app/services/keycloak_oauth/put_execute_actions_email_service.rb

Defined Under Namespace

Modules: Endpoints Classes: AuthenticationService, AuthenticationServiceBase, AuthorizableError, AuthorizableService, CallbacksController, Configuration, Connection, DuplicationError, Engine, GetUsersService, LogoutService, NotFoundError, PostAuthorizationCodeService, PostRefreshTokenService, PostUsersService, PutExecuteActionsEmailService, RefreshAuthenticationService, UserInfoRetrievalService

Constant Summary collapse

VERSION =
"2.0.2"

Class Method Summary collapse

Class Method Details

.configurationObject



11
12
13
# File 'lib/keycloak_oauth.rb', line 11

def self.configuration
  Configuration.instance
end

.configure {|configuration| ... } ⇒ Object

Yields:



7
8
9
# File 'lib/keycloak_oauth.rb', line 7

def self.configure
  yield(configuration) if block_given?
end

.connectionObject



15
16
17
18
19
20
21
22
23
# File 'lib/keycloak_oauth.rb', line 15

def self.connection
  @connection ||= KeycloakOauth::Connection.new(
    auth_url: configuration.auth_url,
    realm: configuration.realm,
    client_id: configuration.client_id,
    client_secret: configuration.client_secret,
    callback_module: configuration.callback_module
  )
end