Plugin::Authentication config: modernize

[?]
Apr 15, 2021, 2:31 PM
NNJZNDVU6ZP5P54KHXHG4O7ZHIAA3F3IVGE5OP6PQ4F4JKXGMBFAC

Dependencies

  • [2] 2SP37OH2 Send ETag and Expires headers
  • [3] WMLUNDDR don't try to load HYDRA_LDAP_CONFIG if none is provided
  • [4] AFTXA575 * $HYDRA_DATA environment variable.
  • [5] HOI5XQHS * Don't use a config file by default. This frees up $HYDRA_CONFIG so
  • [6] LKDWWJLM Doh
  • [7] 72OTJYGT Initial attempt at adding LDAP login support
  • [8] VBUNNYXG Fix path to the session data
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • replacement in src/lib/Hydra.pm at line 30
    [4.7][4.7:31]()
    authentication => {
    [4.969]
    [4.31]
    'Plugin::Authentication' => {
  • replacement in src/lib/Hydra.pm at line 32
    [4.64][4.64:575]()
    realms => {
    dbic => {
    credential => {
    class => "Password",
    password_field => "password",
    password_type => "hashed",
    password_hash_type => "SHA-1",
    },
    store => {
    class => "DBIx::Class",
    user_class => "DB::Users",
    role_relation => "userroles",
    role_field => "role",
    },
    [4.64]
    [4.575]
    dbic => {
    credential => {
    class => "Password",
    password_field => "password",
    password_type => "hashed",
    password_hash_type => "SHA-1",
    },
    store => {
    class => "DBIx::Class",
    user_class => "DB::Users",
    role_relation => "userroles",
    role_field => "role",
  • edit in src/lib/Hydra.pm at line 46
    [4.590][3.0:128]()
    ldap => $ENV{'HYDRA_LDAP_CONFIG'} ? LoadFile(
    file($ENV{'HYDRA_LDAP_CONFIG'})
    ) : undef
  • edit in src/lib/Hydra.pm at line 47
    [4.601]
    [2.0]
    ldap => $ENV{'HYDRA_LDAP_CONFIG'} ? LoadFile(
    file($ENV{'HYDRA_LDAP_CONFIG'})
    ) : undef