Premium Only Content
PHP & MySQL stateless REST-API with JWT authentication 2021
Docker compose setup: https://github.com/neoan3/docker
neoan3 docs: https://neoan3.rocks
The goal of this video is to securely navigate stateless JWT (jsonwebtoken) authentication and authorization within the neoan3 PHP framework.
Fun fact: this video was recorded without internet connection.
00:00 Why this video
01:00 Docker setup
04:11 neoan3 migration tool
07:40 Creating authentication endpoint
08:16 API-routing in neoan3
12:25 Introduction to built-in endpoint tester
17:47 Using JWT to restrict endpoint access
18:56 Creating a simple user model (+ setting up MySQL table)
21:00 Registering a user
23:50 Securing password and abstracting model-access
36:28 Testing JWT handling
38:50 Login (authentication) logic
55:45 Scopes / Permissions
CODE: https://blua.blue/article/how-to-use-in-the-neoan3-framework-13b7/
Default API endpoint using the docker setup: http://localhost:8090/api.v1
About CORS: modify the file /app/default.php --- allowed_origins in order to accept cross-origin requests.
-
1:45:03
The Quartering
3 hours agoRFK Big Pharma Meltdown, Alex Jones WIN & Shadow Government To Oppose Trump!
67.8K24 -
1:53:23
Tucker Carlson
3 hours agoFasting, Prayer, Meditation, & the Global Persecution of Christians (With Hallow CEO Alex Jones)
107K36 -
53:03
Ben Shapiro
3 hours agoEp. 2086 - It’s MAHA TIME: Trump Picks RFK Jr.
66K42 -
57:03
Russell Brand
6 hours ago“I Can PROVE Biden Took CORRUPT Money From Ukraine” – Rudy Giuliani on The Biden Crime Family –SF494
150K114 -
1:59:47
The Charlie Kirk Show
4 hours agoRFK's MAHA Agenda + The Trump Border Effect + Will The Senate Confirm? | Kane, Halperin | 11.15.24
149K44 -
34:45
Athlete & Artist Show
5 days ago $4.60 earnedNCAA Officially Votes To Allow MAJOR JUNIOR Players!
62.3K3 -
1:14:55
Mark Kaye
5 hours ago🔴 Is TRUMP the New George Washington of American Politics?
55.8K33 -
5:40:12
Dcypled
6 hours agoSahkal with my good friend Gabe! | DayZ Adventures
33.8K -
22:47
SLS - Street League Skateboarding
7 days agoAll the 9's - SLS Sydney 2024
29.4K -
2:08:13
The Dilley Show
5 hours ago $18.72 earnedGovernment Confirms Aliens, RFK Jr VS Big Pharma and Q&A Friday! w/Author Brenden Dilley 11/15/2024
58.9K5