Sha256: 8a3b3dfbdbdf909b02d219e5fbed213a09cb9aa6a9b430e52e449b234d308427
Contents?: true
Size: 538 Bytes
Versions: 3
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true module OmniAuth module Strategies class OneTest include OmniAuth::Strategy include OmniAuth::MultiPassword::Base def authenticate(username, password) username == 'john' && password == 'secret' end end end end module OmniAuth module Strategies class TwoTest include OmniAuth::Strategy include OmniAuth::MultiPassword::Base def authenticate(username, password) username == 'jane' && password == '1234' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
omniauth-multipassword-2.1.0 | spec/support/strategies.rb |
omniauth-multipassword-2.0.1 | spec/support/strategies.rb |
omniauth-multipassword-2.0.0.rc1 | spec/support/strategies.rb |