Тёмный

CodeIgniter Shield Installation and Overview 

IgnitedCode
Подписаться 1,3 тыс.
Просмотров 13 тыс.
50% 1

Опубликовано:

 

26 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@АлексейГрунин-б1е
@АлексейГрунин-б1е 2 года назад
Thanks to Lonnie for the cool review - this is a very interesting functionality for me
@mnamhie
@mnamhie Год назад
Thank you, Lonnie. You're amazing. You've done so much and you're so helpful. I love CI4, love Shield. Really, this is where I want to be. Thanks again, Lonnie.
@ignitedcode3091
@ignitedcode3091 Год назад
Wow, thank you!
@cassimmushi7795
@cassimmushi7795 2 года назад
I was waiting for shield tutorial so badly thanks 🙏🏾
@NullViewer
@NullViewer Месяц назад
I'm looking a way, how to configure "system users". Like set of few users which are used just internally and who do not need any Auth functionality. One of such users could be "seeder". I know, I can just inject them into the table, but... could be nice to somehow configure that.
@hyperannatv3387
@hyperannatv3387 11 месяцев назад
May i know why did u put the project name folder inside the app base url(shield-play.test) in .env?
@JanKube_com
@JanKube_com 2 года назад
Shield is such good work... Thank You!
@mediaghar
@mediaghar 10 месяцев назад
Great tutorial! I just have one question. I have noticed that Shield hits the DB unnecessarily even to check if the user is logged in. For e.g. Auth()->loggedIn() or Auth()->getUser(). Pardon my ignorance, but traditionally after a successful login, the user object is stored and retrieved from the session and not overload the DB with get user queries just to check if the user has logged in. Is there a reason for this or am I missing something. We could have saved one expensive db query.
@ignitedcode3091
@ignitedcode3091 9 месяцев назад
Sorry for the delay: You can turn `$recordActiveDate` to `false` and you should see that stop. github.com/codeigniter4/shield/blob/develop/src/Config/Auth.php#L168
@mediaghar
@mediaghar 6 месяцев назад
@@ignitedcode3091 I saw the reply only today. Thanks and sorry. I just checked but it is already "false" in my case. Yet, every page visit, Shield runs the 2 DB queries to authenticate user and to get user details & roles. Why would it authenticate the user from DB in every page request? Not sure if its a problem in my config or I have hit a bug. Has anyone else faced this?
@MonsterSpock
@MonsterSpock Год назад
I have an issue with shield, last_active function is not working at all users active in app but last_active fields is always null... is there anything I can do for this?
@ghury1
@ghury1 3 месяца назад
how do i show the bottom toolbar? i have already set codeigniter 4 in development mode but it doesn't show
@ignitedcode3091
@ignitedcode3091 3 месяца назад
As long as your baseUrl is set to the domain you’re using (or correct port if you’re using localhost) and the Toolbar filter is uncommented it should show up.
@robihamdani5385
@robihamdani5385 2 года назад
to be honest i don't understand well at the documentation because there's only few tutorial and poor explanation (because gap knowledge?) i'll not use shield probably i use it in the future maybe, but hi thanks for your tutorial it's really help me so much 😁
@m.shahrim1933
@m.shahrim1933 2 года назад
How are you able to have login page? When I installed Shield and ran the migration, I didn't have the login route.
@MrWilliamwright
@MrWilliamwright 2 года назад
wow incredible, question does shield will be JWT auth? like for APIRest apps?
@ignitedcode3091
@ignitedcode3091 2 года назад
It doesn't currently support JWT out of the box, though I know one of the core contributors has started on a solution. Will take more work to get it where we want it but it will likely show up at some point. You can use the Access Tokens for API's, though it's a slightly different workflow.
@MrWilliamwright
@MrWilliamwright 2 года назад
@@ignitedcode3091 cool thanks a lot man very cool work
@mehai19
@mehai19 9 месяцев назад
Shortcut tip, if you select the commented out text and do ctrl / command and ? it will auto un-comment or comment the text.
@Rushikesh624
@Rushikesh624 10 месяцев назад
@IgnitedCode How we create these database tables which you shown, can you please give me MySQL file
@lonnieezell
@lonnieezell 10 месяцев назад
No need for a MySQL file - just run "php spark migrate --all" from the command line at the project root and it will be created.
@ascomd.o.o.9663
@ascomd.o.o.9663 Год назад
Thank you, Lonnie. Is there an option to prevent concurrent logins?
@ignitedcode3091
@ignitedcode3091 Год назад
Not currently, sorry.
@cassimmushi7795
@cassimmushi7795 2 года назад
I hope to see more tutorials about shield, probably with a full functioning application
@ignitedcode3091
@ignitedcode3091 2 года назад
I hope to do some more. If you want to view a full application you can check out Bonfire - github.com/lonnieezell/Bonfire2
@sinnersees
@sinnersees Год назад
Thank you for this. Could you explain in some way how to send xml message through CURLRequest.
@LlegoManuel
@LlegoManuel 2 года назад
Thanks for the tutorial. Doesn't it has an api authentication with Bearer tokens?
@ignitedcode3091
@ignitedcode3091 2 года назад
It comes with the Access Token handler which can be used for API authentication. github.com/codeigniter4/shield/blob/develop/docs/authentication.md#access-token-authenticator
@LlegoManuel
@LlegoManuel 2 года назад
@@ignitedcode3091 yeah, I already saw it, but I was thinking about a jwt for a front-end app. This is more server side oriented
@tiagogb
@tiagogb Год назад
thanks for the tutorial 👍
@mauriceb77
@mauriceb77 2 года назад
Can DB sessions (CI_SESSION) be used with Shield?
@ignitedcode3091
@ignitedcode3091 2 года назад
Yes, it uses CI's built-in session management, so it will work just fine that way.
@mauriceb77
@mauriceb77 2 года назад
@@ignitedcode3091 OK, I asked because I tried using the DB session driver but I receive error "Unable to create file ci_session\..." and the CI_SESSION table is empty when I log in. I will check the forums. Thanks for the video.
@MisielArazi
@MisielArazi 2 года назад
Thank you for this tutorial. Could you do a tutorial on "CI Events"?
@JanKube_com
@JanKube_com 2 года назад
so good...! Thank you!
@Doug_Diego_Cazadores_Cassidy
Hi, i get an error, when trying to migrate: I dont get the db tables, created. Security Setup: Everything is fine. Run `spark migrate --all` now? [y, n]: y { "title": "Error", "type": "Error", "code": 500, "message": "Undefined constant \"CodeIgniter\\Database\\MySQLi\\MYSQLI_STORE_RESULT\"", "file": "C:\\project-root\\vendor\\codeigniter4\\framework\\system\\Database\\Database.php", "line": 137, "trace": [
@Sniffer24Channel
@Sniffer24Channel 2 года назад
great video, can you do, how user permission done? thanks
@subratajana1031
@subratajana1031 2 года назад
Thanks Lonnie
@datamweb
@datamweb 2 года назад
Thanks a lot, great 🔥🔥
@zubayrganiyuseun6387
@zubayrganiyuseun6387 2 года назад
Thak You!
@yekrinasoftware
@yekrinasoftware 2 года назад
well given
@severn-master
@severn-master Год назад
elon musk voice
Далее
Installing CodeIgniter 4 with Composer
10:39
Просмотров 11 тыс.
BSides PDX 2024 - Saturday - Track 1
7:14:40
Просмотров 255
Namespaces and CodeIgniter 4
16:31
Просмотров 6 тыс.
Deploy CodeIgniter 4  to Shared Hosting (cPanel)
26:41
So You Think You Know Git - FOSDEM 2024
47:00
Просмотров 1,2 млн
Codeigniter 4 Api Authentication using Shield
22:55
Просмотров 8 тыс.
Learning Codeigniter 4 - Sessions
21:36
Просмотров 3,1 тыс.
Building a Blog - Episode 1
28:50
Просмотров 1 тыс.