Starting with Myth:Auth - some questions - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forumdisplay.php?fid=34) +--- Thread: Starting with Myth:Auth - some questions (/showthread.php?tid=74741) Pages:
1
2
|
RE: Starting with Myth:Auth - some questions - Chivinsdev - 11-06-2019 (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 RE: Starting with Myth:Auth - some questions - Poetawd - 11-06-2019 (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 RE: Starting with Myth:Auth - some questions - MGatner - 11-07-2019 discoverLocal was a legacy configuration change. We've updated the docs just now, including instructions for manual (non-Composer) installation. RE: Starting with Myth:Auth - some questions - Poetawd - 11-07-2019 (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 !!! RE: Starting with Myth:Auth - some questions - InsiteFX - 11-08-2019 Myth/Auth already has an Auth config, I would just keep that one and add to it. RE: Starting with Myth:Auth - some questions - MGatner - 11-09-2019 You mention both authentication and authorization. Can you describe what this config file does? Or link to Symfony’s? RE: Starting with Myth:Auth - some questions - Poetawd - 11-09-2019 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... |