looking for a video on saving datetime values in database and show it to different user based on their selected timezones and also get from them in their timezone and save in common timezone best and optimized way to handle it using cakephp 5
@HUNTSVILLEPRАй бұрын
I have done the imports, add the plugin in the bootstrap method but the implement of AuthorizationServiceProviderInterface is causing a 500 error. Do you have any idea why?
@KevinPfeiferАй бұрын
look at the logs/debug.log or your webservers error log to see the 500 error details
@papiicodes Жыл бұрын
Hi Kevin, do you have video for JWT Stateless Auth in CakePHP API?
@AndrewLee-mn1mn Жыл бұрын
Dear Kevin, How do we allow unauthorized access to the landing page after the implementation of myservice policies and all the others?
@KevinPfeifer Жыл бұрын
So you still require a logged in user (authenticated but no authorization check), right? Then all you need to do is not call the ->authorize() method and instead call $this->Authorization->skipAuthorization(); inside your controller action.
@GuillermoVenuto Жыл бұрын
Hi Kevin, I have a question. While using the "Request Authorization Middleware," I've noticed that the "canAccess($identity, ServerRequest $request)" function, when the $identity parameter is null, does not generate a redirection like the "Authentication" plugin does. Am I missing something, or do I have to do implement it myself? If so, how would I go about it? Thanks for your great explanatory video.
@KevinPfeifer Жыл бұрын
I am not certain what your exact example is about. Can you please elaborate your example in our discourse forum or in our slack/discord support channel so we can further discuss this? KZbin comments aren't meant to be a good place to debug and provide technical support ^^
@sylviadamlabing5358 Жыл бұрын
Thanks. This was very usefull
@WilmerOrtizCastillo Жыл бұрын
Hello, one question, is there a way to change the "id" to another name such as "user_id"? or where I configure to tell cakephp that the "id" is going to be replaced by "user_id" from my "users" table.
@KevinPfeifer Жыл бұрын
If you are talking about the primary key "id" then you can set that via adjusting the "$this->setPrimaryKey('id')" inside your table class to whatever you like.
@WilmerOrtizCastillo Жыл бұрын
Excellent thanks
@evolvedHE Жыл бұрын
I've tried this 10 times and it just never logs me in at 27:45. I have no idea why
@evolvedHE Жыл бұрын
nevermind, turns out my password was limited to 20 characters so the hash wouldn't be done right