module Warden::Cognito
Constants
- Import
- VERSION
Public Class Methods
jwk_config_keys()
click to toggle source
# File lib/warden/cognito.rb, line 16 def jwk_config_keys %i[key issuer] end
jwk_instance(value)
click to toggle source
# File lib/warden/cognito.rb, line 20 def jwk_instance(value) attributes = value&.symbolize_keys&.slice(*jwk_config_keys) || {} Struct.new(*jwk_config_keys, keyword_init: true).new(attributes) end
user_pool_configuration_keys()
click to toggle source
# File lib/warden/cognito.rb, line 25 def user_pool_configuration_keys %i[identifier region pool_id client_id] end
user_pool_configurations(value)
click to toggle source
# File lib/warden/cognito.rb, line 29 def user_pool_configurations(value) value.map do |key, conf| attributes = conf.symbolize_keys.slice(*user_pool_configuration_keys).merge(identifier: key) Struct.new(*user_pool_configuration_keys, keyword_init: true).new(attributes) end end
Private Instance Methods
jwk_config_keys()
click to toggle source
# File lib/warden/cognito.rb, line 16 def jwk_config_keys %i[key issuer] end
jwk_instance(value)
click to toggle source
# File lib/warden/cognito.rb, line 20 def jwk_instance(value) attributes = value&.symbolize_keys&.slice(*jwk_config_keys) || {} Struct.new(*jwk_config_keys, keyword_init: true).new(attributes) end
user_pool_configuration_keys()
click to toggle source
# File lib/warden/cognito.rb, line 25 def user_pool_configuration_keys %i[identifier region pool_id client_id] end
user_pool_configurations(value)
click to toggle source
# File lib/warden/cognito.rb, line 29 def user_pool_configurations(value) value.map do |key, conf| attributes = conf.symbolize_keys.slice(*user_pool_configuration_keys).merge(identifier: key) Struct.new(*user_pool_configuration_keys, keyword_init: true).new(attributes) end end