Sha256: d1e228c7112b7c5ed0a991c71943b23b1aff870760ccbb55ba194c4a8688da54

Contents?: true

Size: 588 Bytes

Versions: 34

Compression:

Stored size: 588 Bytes

Contents

require 'casserver/authenticators/sql'

require 'digest/md5'

# Essentially the same as the standard SQL authenticator, but this version
# assumes that your password is stored as an MD5 hash.
#
# This was contributed by malcomm for Drupal authentication. To work with
# Drupal, you should use 'name' for the :username_column config option, and
# 'pass' for the :password_column.
class CASServer::Authenticators::SQLMd5 < CASServer::Authenticators::SQL

  protected
    def read_standard_credentials(credentials)
      super
      @password = Digest::MD5.hexdigest(@password)
    end

end

Version data entries

34 entries across 34 versions & 7 rubygems

Version Path
godfat-rubycas-server-0.8.0.20090918 lib/casserver/authenticators/sql_md5.rb
synapse-rubycas-server-1.1.6 lib/casserver/authenticators/sql_md5.rb
synapse-rubycas-server-1.1.5.pre lib/casserver/authenticators/sql_md5.rb
synapse-rubycas-server-1.1.4.pre lib/casserver/authenticators/sql_md5.rb
synapse-rubycas-server-1.1.4 lib/casserver/authenticators/sql_md5.rb
synapse-rubycas-server-1.1.3alpha lib/casserver/authenticators/sql_md5.rb
synapse-rubycas-server-1.1.3.pre lib/casserver/authenticators/sql_md5.rb
synapses-cas-0.1.11 lib/casserver/authenticators/sql_md5.rb
synapses-cas-0.1.10 lib/casserver/authenticators/sql_md5.rb
synapses-cas-0.1.9 lib/casserver/authenticators/sql_md5.rb
ror-rubycas-server-1.0.c lib/casserver/authenticators/sql_md5.rb
ror-rubycas-server-1.0.b lib/casserver/authenticators/sql_md5.rb
ror-rubycas-server-1.0.a lib/casserver/authenticators/sql_md5.rb
rubycas-server-1.1.2 lib/casserver/authenticators/sql_md5.rb
synapses-cas-0.1.8 lib/casserver/authenticators/sql_md5.rb
synapses-cas-0.1.7 lib/casserver/authenticators/sql_md5.rb
rubycas-server-1.1.1 lib/casserver/authenticators/sql_md5.rb
synapses-cas-0.1.6 lib/casserver/authenticators/sql_md5.rb
synapses-cas-0.1.5 lib/casserver/authenticators/sql_md5.rb
synapses-cas-0.1.4 lib/casserver/authenticators/sql_md5.rb