Log message #4189835

# At Username Text
# Jun 17th 2019, 22:30 stephenzgalbraith use Cake\Core\Configure; use Cake\Core\Exception\MissingPluginException; use Cake\Error\Middleware\ErrorHandlerMiddleware; use Cake\Http\BaseApplication; use Cake\Http\MiddlewareQueue; use Cake\Routing\Middleware\AssetMiddleware; use Cake\Routing\Middleware\RoutingMiddleware; use Cake\Routing\Router; use Cake\Http\ServerRequest; use Authentication\AuthenticationService; use Authentication\AuthenticationServiceProviderInterface;
# Jun 17th 2019, 22:30 stephenzgalbraith I have all of these:
# Jun 17th 2019, 22:30 ricksaccous you have this use statement? use Psr\Http\Message\ServerRequestInterface;
# Jun 17th 2019, 22:28 ricksaccous seems like one of those errors
# Jun 17th 2019, 22:28 ricksaccous i think...
# Jun 17th 2019, 22:27 ricksaccous lol
# Jun 17th 2019, 22:27 ricksaccous you forgot a use statement dude
# Jun 17th 2019, 22:27 stephenzgalbraith https://stackoverflow.com/questions/56635969/cakephp-4-x-authentication-2-x-fatal-error-when-initiating
# Jun 17th 2019, 22:26 stephenzgalbraith nope, fresh install of both the app skeleton and authentication plugin
# Jun 17th 2019, 22:26 ricksaccous you aren't still trying to use the auth component are you?
# Jun 17th 2019, 22:26 ricksaccous where are you having trouble?
# Jun 17th 2019, 22:26 ricksaccous oh i have that working with the new plugin
# Jun 17th 2019, 22:18 stephenzgalbraith Ah alright.. I can't seem to get authentication up on a fresh 4.x-dev install
# Jun 17th 2019, 22:18 ricksaccous I'm on 3.7 but making sure there are no deprecation errors
# Jun 17th 2019, 22:17 ricksaccous @stephenzgalbraith no
# Jun 17th 2019, 22:16 rightscoreanalysis oops sorry
# Jun 17th 2019, 22:16 stephenzgalbraith @ricksaccous have you already upgraded to 4?
# Jun 17th 2019, 22:15 ricksaccous i want this thing cake 4 ready
# Jun 17th 2019, 22:15 ricksaccous so that doesnt' apply
# Jun 17th 2019, 22:14 ricksaccous I'm using the new plugins
# Jun 17th 2019, 22:14 rightscoreanalysis highly recommend
# Jun 17th 2019, 22:14 rightscoreanalysis @ricksaccous have you looked at the TinyAuth plugin by dereuromark?
# Jun 17th 2019, 22:08 ricksaccous doh
# Jun 17th 2019, 22:08 ricksaccous it says in the docs that i need to load it after authentication
# Jun 17th 2019, 22:08 ricksaccous wait
# Jun 17th 2019, 22:06 ricksaccous i suppose i don't need that interface after all
# Jun 17th 2019, 22:06 ricksaccous interesting
# Jun 17th 2019, 22:06 ricksaccous authorization should be loaded before authentication...
# Jun 17th 2019, 22:06 ricksaccous so
# Jun 17th 2019, 22:05 ricksaccous interestinggggg
# Jun 17th 2019, 22:05 ricksaccous this is the error i'm getting Error: Identity found in request does not implement Authentication\IdentityInterface
# Jun 17th 2019, 22:05 ricksaccous oh heh
# Jun 17th 2019, 21:58 ricksaccous the identity object does not look correct
# Jun 17th 2019, 21:57 slackebot1 <ricksaccous>
# Jun 17th 2019, 21:57 rightscoreanalysis that makes no sense
# Jun 17th 2019, 21:57 rightscoreanalysis if I debug $query->count() the result is 0
# Jun 17th 2019, 21:57 rightscoreanalysis I have a query - if I debug the sql and pasteinto mysql I get two results
# Jun 17th 2019, 21:56 rightscoreanalysis I have some unexaplained behaviour:
# Jun 17th 2019, 21:55 ricksaccous and my entity has it but the user obect here: $authorization = new AuthorizationMiddleware( $this, [ 'identityDecorator' => function ($auth, $user) { debug($user); return $user['data']->setAuthorization($auth); } ] );
# Jun 17th 2019, 21:55 ricksaccous it's telling me the setAuthorization method doesn't exist
# Jun 17th 2019, 21:55 ricksaccous I'm getting stuck around here: https://book.cakephp.org/authorization/1.1/en/middleware.html#identity-decorator