1

Anybody know how to get model and method name used in Auth finder option?

I know when I set custom finder can get the name from $this->Auth->config();, but how to this for default finder?

kicaj
  • 2,881
  • 5
  • 42
  • 68
  • The default finder is named `all`, and it could also be retrieved via the authentication objects configuration. However, why do you need that information in the first place? The question smells a little [**xy-ish**](https://meta.stackexchange.com/a/66378/227568). – ndm Jan 18 '18 at 20:16
  • @ndm: I wrote plugin that extend Auth component based on `finder`. I would like add plugin with minimum configuration.. – kicaj Jan 19 '18 at 18:43

1 Answers1

1

Maybe someone will use it:

$authenticate = $this->Auth->getAuthenticate('Form');

echo $authenticate->getConfig('finder');
kicaj
  • 2,881
  • 5
  • 42
  • 68