Module: Warden::Cognito::HasUserPoolIdentifier::ClassMethods

Defined in:
lib/warden/cognito/has_user_pool_identifier.rb

Instance Method Summary collapse

Instance Method Details

#invalid_issuer_errorObject



28
29
30
# File 'lib/warden/cognito/has_user_pool_identifier.rb', line 28

def invalid_issuer_error
  -> { raise ::JWT::InvalidIssuerError, 'The token was not generated by any of the configured User Pools' }
end

#pool_iteratorObject



20
21
22
23
24
25
26
# File 'lib/warden/cognito/has_user_pool_identifier.rb', line 20

def pool_iterator
  PoolRelatedIterator.new do |pool|
    new.tap do |pool_related|
      pool_related.user_pool = pool.identifier
    end
  end
end