# |
Jun 12th 2019, 14:16 |
ricksaccous |
crazy |
# |
Jun 12th 2019, 14:16 |
ricksaccous |
so i could add the same identifier twice but with different resolvers configured |
# |
Jun 12th 2019, 14:16 |
ricksaccous |
hahahaha |
# |
Jun 12th 2019, 14:16 |
ricksaccous |
i should have talked to you earlier |
# |
Jun 12th 2019, 14:16 |
ricksaccous |
welp |
# |
Jun 12th 2019, 14:15 |
jeremyharris |
yup they do |
# |
Jun 12th 2019, 14:15 |
ricksaccous |
lmao |
# |
Jun 12th 2019, 14:15 |
ricksaccous |
because i wouldn't mind not writing this resolver |
# |
Jun 12th 2019, 14:14 |
ricksaccous |
until one returns favorably? |
# |
Jun 12th 2019, 14:14 |
ricksaccous |
oh is that a thing? does it just go through each? |
# |
Jun 12th 2019, 14:14 |
jeremyharris |
or maybe you could add multiple identifiers using different resolvers |
# |
Jun 12th 2019, 14:13 |
jeremyharris |
yeah |
# |
Jun 12th 2019, 14:13 |
ricksaccous |
but across multiple tables i think i need my own resolver |
# |
Jun 12th 2019, 14:13 |
jeremyharris |
ah |
# |
Jun 12th 2019, 14:13 |
ricksaccous |
before i used this plugin |
# |
Jun 12th 2019, 14:13 |
ricksaccous |
no i meant before when i wrote my own Auth |
# |
Jun 12th 2019, 14:12 |
jeremyharris |
you can do that with the ‘finder’ option in the OrmResolver ;) |
# |
Jun 12th 2019, 14:11 |
ricksaccous |
hehe |
# |
Jun 12th 2019, 14:11 |
ricksaccous |
besides username/password |
# |
Jun 12th 2019, 14:11 |
ricksaccous |
I have written my own auth though because i wanted to add a field to the check |
# |
Jun 12th 2019, 14:11 |
ricksaccous |
haha yeah i've been using that |
# |
Jun 12th 2019, 14:10 |
neon1024 |
Oh the middleware? Then I’m out. I’ve only used it once a long time ago in alpha |
# |
Jun 12th 2019, 14:10 |
ricksaccous |
I'm using the new authentication plugin thing |
# |
Jun 12th 2019, 14:10 |
neon1024 |
I wrote an ApiAuth adapter for my api :slightly_smiling_face: |
# |
Jun 12th 2019, 14:10 |
ricksaccous |
but the way the normal authenticator grabs the table info is via a resolver, which works fine right now |
# |
Jun 12th 2019, 14:09 |
ricksaccous |
which will identify against an api/tables |
# |
Jun 12th 2019, 14:09 |
ricksaccous |
yeah i'm writing a custom identifier |
# |
Jun 12th 2019, 14:08 |
ricksaccous |
ohhh |
# |
Jun 12th 2019, 14:08 |
neon1024 |
No idea, sorry. I’ve only ever used Auth adapters, I have no idea what a Resolver is. An auth adapter will be a custom way for the AuthComponent to find and identify users |
# |
Jun 12th 2019, 14:07 |
ricksaccous |
@neon1024 what's an adapter? isn't a resolver the more re-usable solution? |
# |
Jun 12th 2019, 13:45 |
ondrej.nedvidek |
ok it seems I need always to ask and then I find out :) ``` select([ 'id', 'column1', 'column2' => 'null' ]); ``` |
# |
Jun 12th 2019, 13:44 |
neon1024 |
Which loaded the correct Table instances, and did the thing |
# |
Jun 12th 2019, 13:43 |
neon1024 |
@ricksaccous I’d probably write my own Auth adapter |
# |
Jun 12th 2019, 13:42 |
ricksaccous |
I think the answer is yessssss |
# |
Jun 12th 2019, 13:40 |
ondrej.nedvidek |
Hi there ;) ``` Select id, column1, null as column2 from tableA UNION Select id, column1, column2 from tableB ``` Does anybody know how to specify `union` null fields? As example above |
# |
Jun 12th 2019, 13:40 |
ricksaccous |
that supports multiple tables |
# |
Jun 12th 2019, 13:40 |
ricksaccous |
would the best way to go about that be to write my own resolver |
# |
Jun 12th 2019, 13:40 |
ricksaccous |
if i wanted to potentially verify users across multiple tables |
# |
Jun 12th 2019, 13:40 |
ricksaccous |
so |
# |
Jun 12th 2019, 13:35 |
niel45 |
many thanks |
# |
Jun 12th 2019, 13:35 |
neon1024 |
:thumbsup: |