# |
Jul 8th 2019, 13:52 |
jeremyharris |
that would be in the authentication component, but yes it should be possible |
# |
Jul 8th 2019, 13:50 |
martin |
middleware |
# |
Jul 8th 2019, 13:50 |
martin |
ehh |
# |
Jul 8th 2019, 13:50 |
martin |
wanted to know if it was possible to build in inside the authorization component |
# |
Jul 8th 2019, 13:50 |
martin |
For a new (api) project I was yesterday checking for oauth2, since the only plugin that adds it is not maintained |
# |
Jul 8th 2019, 13:50 |
jeremyharris |
I have an app that, when the user views a QuoteRequest, it checks if they are in certain groups or have been personally shared that quote request from a someone who has sendable permissions |
# |
Jul 8th 2019, 13:49 |
jeremyharris |
as powerful as complex ACLs or as simple as RBAC |
# |
Jul 8th 2019, 13:49 |
jeremyharris |
it’s flexible enough to support just about anything you want |
# |
Jul 8th 2019, 13:49 |
martin |
That is something I’m missing right now |
# |
Jul 8th 2019, 13:48 |
martin |
It also checks if a user is allowed to read the entity? |
# |
Jul 8th 2019, 13:48 |
martin |
Yes I was checking that yesterday |
# |
Jul 8th 2019, 13:48 |
jeremyharris |
yeah not to worry, it’s not going to be an overnight change :) it’s worth it though, the authorization lib is really nice |
# |
Jul 8th 2019, 13:47 |
martin |
Then I have enough time to convert it :P |
# |
Jul 8th 2019, 13:45 |
jeremyharris |
that’s how I read it |
# |
Jul 8th 2019, 13:45 |
neon1024 |
Then it’ll not be included in 5.0 |
# |
Jul 8th 2019, 13:44 |
neon1024 |
So the release of 4.0 will see it marked deprecated right? |
# |
Jul 8th 2019, 13:44 |
neon1024 |
I find this wording confusing `Deprecated since version 4.0.0` |
# |
Jul 8th 2019, 13:32 |
jeremyharris |
yes it’ll work in 4.0.0 |
# |
Jul 8th 2019, 13:32 |
martin |
so it will still work in version 4.0.0 :P |
# |
Jul 8th 2019, 13:32 |
martin |
“Deprecated since version 4.0.0: The AuthComponent is deprecated as of 4.0.0 and will be replaced by the authorization and authentication plugins.” |
# |
Jul 8th 2019, 13:31 |
martin |
oh it is on the page |
# |
Jul 8th 2019, 13:29 |
martin |
What is the future of the auth component? will this replaced with the middleware version or does the current way also work in cake 4? |
# |
Jul 8th 2019, 12:50 |
dereuromark |
wow, that sounds like a strange bug then. I would expect this only if something failed and we dont revert properly, or so |
# |
Jul 8th 2019, 12:40 |
half2me |
@dereuromark nope, no exceptions. When I turn of atomicity, everything works as expected |
# |
Jul 8th 2019, 12:15 |
neothermic |
it's a cake 1.2 app that got upgraded to 2.x |
# |
Jul 8th 2019, 12:15 |
neothermic |
:) |
# |
Jul 8th 2019, 12:15 |
admad |
"we got about 1.5k lines in our appmodel" @neothermic you sure someone isn't actively trying to sabotage the project? |
# |
Jul 8th 2019, 11:33 |
neothermic |
ah, we cheated, we make a singleton of the userclass for the currently logged in user :) |
# |
Jul 8th 2019, 11:26 |
neon1024 |
Thanks to all the contributors of muffin/footprint your ideas just helped me solve a similar problem <3 |
# |
Jul 8th 2019, 10:30 |
dereuromark |
where there any exceptions or errors encountered? or does it also happen in happy case? |
# |
Jul 8th 2019, 10:26 |
half2me |
I remember talking with someone here about it before, I think it was you :) |
# |
Jul 8th 2019, 10:26 |
half2me |
@dereuromark do you remember having a similar issue? |
# |
Jul 8th 2019, 10:25 |
half2me |
if I have some more time on my hands, I’ll try to trace it with the debugger and see if I can come up with anything useful |
# |
Jul 8th 2019, 10:24 |
half2me |
the thing is, I have about 5 findOrReplace functions running in there, and 4 of the succeed, its only the last one which doesnt |
# |
Jul 8th 2019, 10:24 |
half2me |
but I’ve come across this in two independent projects now |
# |
Jul 8th 2019, 10:23 |
half2me |
and just saying, “oh it doesnt work in my code” is not really something usefull |
# |
Jul 8th 2019, 10:23 |
half2me |
I would, but I haven’t been able to reproduce it with a minimal code base |
# |
Jul 8th 2019, 10:23 |
neon1024 |
..and ensure there isn’t a test-case for this |
# |
Jul 8th 2019, 10:23 |
neon1024 |
Perhaps you should open an issue with some example code |
# |
Jul 8th 2019, 10:23 |
half2me |
it saves correctly when it is disabled |
# |
Jul 8th 2019, 10:22 |
half2me |
exactly |