Module: KeycloakConnectRuby
- Defined in:
- lib/keycloak-connect-ruby.rb,
lib/keycloak-connect-ruby/token.rb,
lib/keycloak-connect-ruby/errors.rb,
lib/keycloak-connect-ruby/version.rb,
lib/keycloak-connect-ruby/configuration.rb
Defined Under Namespace
Modules: Errors
Classes: Token
Constant Summary
collapse
- VERSION =
'1.0.0'
- CONFIG_OPTIONS =
[
'url',
'realm',
'client_id',
'client_secret',
'logger',
'proxy'
]
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
20
21
22
|
# File 'lib/keycloak-connect-ruby/configuration.rb', line 20
def self.config
@configuration
end
|
13
14
15
16
17
18
|
# File 'lib/keycloak-connect-ruby/configuration.rb', line 13
def self.configure
options = OpenStruct.new
yield options
validate_options(options)
@configuration ||= options
end
|
.logger ⇒ Object
24
25
26
|
# File 'lib/keycloak-connect-ruby/configuration.rb', line 24
def self.logger
config.logger
end
|
.validate_options(options) ⇒ Object