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:03:23
Tactical Advisor
11 hours agoNew Gun Unboxing | Vault Room Live Stream 044
222K35 -
19:12
Robbi On The Record
12 hours ago $18.69 earnedThe Loneliness Epidemic: AN INVESTIGATION
61.8K90 -
14:45
Mrgunsngear
1 day ago $110.28 earnedFletcher Rifle Works Texas Flood 30 Caliber 3D Printed Titanium Suppressor Test & Review
107K26 -
17:17
Lady Decade
1 day ago $7.79 earnedMortal Kombat Legacy Kollection is Causing Outrage
70.3K10 -
35:51
Athlete & Artist Show
1 day ago $13.63 earnedIs Ryan Smith The Best Owner In The NHL?
86.5K8 -
22:56
American Thought Leaders
2 days agoCharles Murray: I Thought Religion Was Irrelevant to Me. I Was Wrong.
71.6K39 -
36:22
Brad Owen Poker
13 hours agoGIGANTIC $17,000+ Pot In BOBBY’S ROOM! TRAPPING Top Pro w/FULL HOUSE!! Big Win! Poker Vlog Ep 326
76.7K6 -
3:53
GreenMan Studio
1 day agoRUMBLE RUNDOWN: DREAM HACK SPECIAL W/Greenman Reports
62.3K12 -
1:28
Damon Imani
2 days agoThey Laughed at Trump’s Cognitive Test — Damon Made Them REGRET It!
59.9K39 -
9:14
Freedom Frontline
1 day agoAdam Schiff PANICS As Eric Schmitt Exposes His Dirty Lies LIVE
40.5K82