Starting with Myth:Auth - some questions |
(11-01-2019, 09:25 AM)Poetawd Wrote:(11-01-2019, 09:16 AM)kilishan Wrote:(11-01-2019, 09:13 AM)Poetawd Wrote: Another question, is auto-loading really required ? I mean, is it going to be loaded in every controller ? What about the controllers that doesn´t require it ? Is there a way to load it just when it is needed ? I am here to help set up your Codeigniter 4 with the Myth/Auth. I am using it. Here is my email **REDACTED** or drop me a private message (11-06-2019, 04:15 AM)Chivinsdev Wrote:(11-01-2019, 09:25 AM)Poetawd Wrote:(11-01-2019, 09:16 AM)kilishan Wrote:(11-01-2019, 09:13 AM)Poetawd Wrote: Another question, is auto-loading really required ? I mean, is it going to be loaded in every controller ? What about the controllers that doesn´t require it ? Is there a way to load it just when it is needed ? Thank you all ! The first problem I found is that I didn´t find the discoverLocal property to be changed to TRUE in app/config/Rules.php... This is required by the README
discoverLocal was a legacy configuration change. We've updated the docs just now, including instructions for manual (non-Composer) installation.
(11-07-2019, 12:32 PM)MGatner Wrote: discoverLocal was a legacy configuration change. We've updated the docs just now, including instructions for manual (non-Composer) installation. Awesome ! I was able to install it last night... Playing with it right now... I do have some ideas/requests The first and easy one is a config-file-based authorization. I believe that Symfony has that... A simple config-file containing some authentication rules. Are you planning a view to manage roles/authorization ? Thank you !!!
Myth/Auth already has an Auth config, I would just keep that one and add to it.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
You mention both authentication and authorization. Can you describe what this config file does? Or link to Symfony’s?
My idea (and that is how my ACL library works) is to eliminate a DB query to check permission every time the user tryes to access a page...
Here is the config: PHP Code: <?php And here is the class: It is very simple... But works like a charm !!! And NO DB is required... PHP Code: <?php By the way... It would be AWESOME if you could give some comments about this code... |
Welcome Guest, Not a member yet? Register Sign In |