# |
Aug 29th 2019, 10:59 |
alexdd55976 |
the docu does not tell where its "constructed" its just used later ... know idea wher eit comes from |
# |
Aug 29th 2019, 10:59 |
alexdd55976 |
i do not even know where its coming from. there is a `$authentication`variable used in the middleware method, but of course this is not available in the user controller |
# |
Aug 29th 2019, 10:51 |
conehead |
not sure, but can't you just throw an exception in the constructor and print out the stacktrace? |
# |
Aug 29th 2019, 10:50 |
alexdd55976 |
can anyone pls help with that? |
# |
Aug 29th 2019, 09:50 |
javier.villanueva |
I understood that you want a model without table associated, but you want no override its table |
# |
Aug 29th 2019, 09:49 |
javier.villanueva |
Mmm sorry, I didnt know this option |
# |
Aug 29th 2019, 09:48 |
neon1024 |
That’ll work too |
# |
Aug 29th 2019, 09:48 |
challgren |
Well easiest I found was `bin/cake bake model Devices` and not overwrite the table |
# |
Aug 29th 2019, 09:47 |
neon1024 |
`bin/cake bake model --no-table --no-test --no-fixture Examples` |
# |
Aug 29th 2019, 09:47 |
neon1024 |
@challgren Yes you can bake just an entity |
# |
Aug 29th 2019, 09:47 |
alexdd55976 |
@admad @ndm in the docs i found `$request->getAttribute('identity');`where is `$request`coming from? it is nowhere initialized in the docs.. |
# |
Aug 29th 2019, 09:37 |
alexdd55976 |
and still a riddle where `$this->Authentication` is initated |
# |
Aug 29th 2019, 09:37 |
alexdd55976 |
but of course its not working |
# |
Aug 29th 2019, 09:36 |
alexdd55976 |
somehow.. i tries to authenticate... |
# |
Aug 29th 2019, 09:31 |
javier.villanueva |
@challgren I think not possible in 3.x |
# |
Aug 29th 2019, 09:30 |
alexdd55976 |
the old auth component seems not to be the one |
# |
Aug 29th 2019, 09:30 |
alexdd55976 |
@ndm `Authentication is required to continue` .. but there is no authentication component. |
# |
Aug 29th 2019, 09:30 |
challgren |
I wanted to be lazy! |
# |
Aug 29th 2019, 09:30 |
challgren |
Yeah I just did it manually |
# |
Aug 29th 2019, 09:30 |
javier.villanueva |
I think that cake not support it |
# |
Aug 29th 2019, 09:27 |
challgren |
Not table |
# |
Aug 29th 2019, 09:27 |
challgren |
Entity |
# |
Aug 29th 2019, 09:27 |
javier.villanueva |
a model? |
# |
Aug 29th 2019, 09:25 |
challgren |
There any way to just bake an entity? |
# |
Aug 29th 2019, 09:23 |
ndm |
The Authentication component isn't loaded. Also it has no `identify()` method... that's a method of the old Auth component. https://book.cakephp.org/authentication/1.1/en/index.html#authentication-component |
# |
Aug 29th 2019, 09:19 |
alexdd55976 |
$this->Authentication is done like documentation says... which comes somehow out of the blue |
# |
Aug 29th 2019, 09:18 |
alexdd55976 |
Line40: `$result = $this->Authentication->identify();` |
# |
Aug 29th 2019, 09:18 |
alexdd55976 |
submitting it says that `Undefined property: UsersController::$Authentication in C:\webroot\ng\src\Controller\UsersController.php on line 40` |
# |
Aug 29th 2019, 09:17 |
alexdd55976 |
i can enter my credentials |
# |
Aug 29th 2019, 09:17 |
alexdd55976 |
it loads the login screen |
# |
Aug 29th 2019, 09:16 |
alexdd55976 |
yes, thats the situation right now |
# |
Aug 29th 2019, 09:15 |
ndm |
Guess there is no LDAP authenticator, only an LDAP identifier... which makes sense |
# |
Aug 29th 2019, 09:15 |
alexdd55976 |
you see, i am seriously lost here |
# |
Aug 29th 2019, 09:12 |
alexdd55976 |
ok, that changed the message to `Authenticator class `LDAP` was not found.` |
# |
Aug 29th 2019, 09:11 |
ndm |
Just use `$service = new AuthenticationService();` instead of `$service = new AuthenticationService([ /* ... */]);` |
# |
Aug 29th 2019, 09:10 |
alexdd55976 |
@ndm first of all... thanks. second of all... how is your recommendation be done? this whole concept is not yet opening up for me... |
# |
Aug 29th 2019, 09:08 |
ndm |
@alexdd55976 Either remove the service constructor configuration (that will cause the authenticator/identifier to be loaded with its default configuration), or move the whole configuration in there instead of using `loadIdentifier()`/`loadAuthenticator()` |
# |
Aug 29th 2019, 09:03 |
spriz |
Yikes cake 3.7 or 3.8 dies hard on a mistake in the FormHelper::control() if the input is `'integrations._ids.'` instead of `'integrations._ids'` :cold_sweat: :) |
# |
Aug 29th 2019, 09:01 |
alexdd55976 |
https://gist.github.com/alexdd55/ecb5537a38a0871a07e19cee6a67f48e |
# |
Aug 29th 2019, 09:01 |
alexdd55976 |
@ndm i do this in application.php |
# |
Aug 29th 2019, 08:45 |
ndm |
Then the code maybe isn't actually invoked. I mean, if you were receiving that error with that code in the controller, then there had to be additional code that actually loads the identifier at middleware level. What does the stacktrace look like? |