LmcUser icon indicating copy to clipboard operation
LmcUser copied to clipboard

The auth_adapters config option is using an associative array with integer keys. An list array will cause unwanted results.

Open visto9259 opened this issue 1 year ago • 0 comments

In the lmc_user config, the key auth_adapters is expecting an associative array with the following signature:

'lmc_user' => [
   'auth_adapters' => [
        100 => 'firtsadaptername`,   // where 100 is the priority and is an integer
        200 => 'secondadaptername',
   ],
]

if one was to pass a list array, then it would be treated the same as:

'lmc_user' => [
   'auth_adapters' => [
        0 => 'firtsadaptername`,   
        1 => 'secondadaptername',
   ],
]

Althought, it would defeat the purpose to use a list array, there should be a assertion in the factory to detect and reject list arrays.

visto9259 avatar Oct 08 '24 19:10 visto9259