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.
-
LIVE
StoneMountain64
3 hours agoBattlefield 6 is just TOO FUN
156 watching -
14:51
Dr. Nick Zyrowski
3 days agoWho Should Follow A Low Carb Diet? (Surprising Answer!)
5.95K2 -
1:16:41
Steven Crowder
6 hours agoFacts Based "Racism" | Black & White on the Gray Issues Pt. 2
326K1.19K -
1:02:50
DeVory Darkins
3 hours ago $23.00 earnedDemocrats HUMILIATED during painful town hall as Federal Judge drops desperate ruling
89.6K90 -
1:16:49
Sean Unpaved
4 hours agoNFL Chaos, Jays' Homer Frenzy, & CFB/CBB Blue Bloods Overview
26.1K1 -
1:02:23
Mark Kaye
4 hours ago🔴 MELTDOWN- Pelosi and AOC RAGE On Live TV!
20.8K8 -
39:50
ArynneWexler
2 hours agoMarjorie's Meltdown and Mini Somalia in Minneapolis
11.9K11 -
1:02:13
Timcast
4 hours agoTrump NUKING H1B, Overhauls Immigration, Democrats LOSE IT
134K56 -
1:56:11
The Charlie Kirk Show
4 hours agoThe Rise of Leftwing Violence + Banning Sharia + The Saad Truth | Sen. Tuberville, Dr. Gad Saad
80.2K18 -
2:56:34
Side Scrollers Podcast
5 hours agoTwitch PROMOTES DIAPER FURRY + Asmongold/Trans CONTROVERSY + RIP Itagaki + More | Side Scrollers
31.3K3