#7 Codeigniter 3 - Rest Server Library API - Generate PHP Token for User Authorization

preview_player
Показать описание
CodeIgniter 3 PHP Framework and Rest Server Library Video Tutorial Part 7: Generate PHP Token for User Authorization Using PHP-JWT Library

Rest Server Library (API)
A fully RESTful server implementation for CodeIgniter using one library, one config file, and one controller.
--------------------------------------------------------
1 LIKE = More Motivation!

♦ PHP-JWT Library GitHub :-

♦ Support by Donating - PayTm: +918868881618

–––
Main Playlists:

♦ CakePHP 3.x video tutorials :

♦ Phalcon 3.3 video tutorials

♦ Codeigniter 3.1.4 Video Tutorials

♦ Codeigniter 3 - Rest Server Library (API)

♦ Codeigniter 3 HMVC Framework Video Tutorials :
---

➡ Follow Us on

================Audio Track Info=========
Creative Commons — Attribution-ShareAlike 3.0 Unported — CC BY-SA 3.0

=================Credits=================
All rights reserved . Contact before using the videos.

===========Tags ============
Php framework, Codeigniter rest api, Learn programming, Codeigniter rest api, Codeigniter 3.0 rest tutorial,

#CodeIgniter #API #JWT

------------------------------------
LIKE ❤ | COMMENT | SHARE | SUBSCRIBE
------------------------------------

©C Tech हिन्दी
Рекомендации по теме
Комментарии
Автор

It is important to understand that the purpose of using JWT is NOT to hide or obscure data in any way. The reason why JWT are used is to prove that the sent data was actually created by an authentic source.

Since JWT are signed and encoded only, and since JWT are not encrypted, JWT do not guarantee any security for sensitive data.

ctechhindi
Автор

Quick question. Im using psotman for testing the method. Installed JWT all good, but when i try to login y can't get trough the first form validation, maybe im sending the request wrong. im sending it on params, and also tryed on headers. I se you have a 1 on headers, wich paramis it? maybe thats it. The response says that the username and password fields are required, wich suggests the username and passwords are not getting there

toro
Автор

i have this problem, My Controller "Auth_controller" has everything but when i call the Authorization_token library fails with this error in display:
Severity: Warning

Message: Undefined property:

Filename:

How can i resolve it?

bryaneoficial
Автор

Hi i have installed it in my old live running project and it is working but i have one confusion. Is it possible to use it with ION_Auth code-igniter library.. is yes then pls help me to validate ION_Auth functions like $this->ion_auth->logged_in(), i know this is not part of you JWT..so pls.

santoshparmar
Автор

Hi, thank you for your videos. Great job!
Ok. I'm keep getting [message] => Token is not defined. I'm using Insomania, I set Header Authorization and put token as value, basically did everything what you did in the video and no success. Header not sending token. Any suggestions? Thank you.

DavidTacer
Автор

When we change algorithm to RS256 it gives us OpenSSL error: error:0906D06C:PEM routines:PEM_read_bio:no start line.
If we change algorithm to HS256 it gives us Array ( [status] => [message] => Algorithm not allowed )
.
Any help?

DayNightOnline
Автор

when we use jwt then our login/signup system will be unsecure ??

haseebfayyaz
Автор

validateTokenPost(), userData() and tokenIsExist() functions are now shown here. What are the codes inside those functions?

abhishekchatterjee
Автор

how to cek the token is valid . im using this
$tokenValid=

{
Return 'Your Token Is Unvalid'
}
else{
return "Your Token Valid"
}
but isnt working when this;

jogansahu
Автор

Is it possible to add privilege for users? Like give them role, so user can only access GET method, and other user can access both GET and POST.

I try to figure out using this PHP-JWT, but still had no clue.

Nice video and very helpful project btw

saifurrahim
Автор

Hola, estoy generando el token sin problema, pero no me funciona el userData(), del token que genere, lo estoy pasand como authorizacion en las cebercas, pero siempre me dice "Forbidden", alguna solución? gracias

adrielbustos
Автор

why i am working on a place that still uses php?

tonyvillegas
Автор

Thank you for this great tutorial. How to create a forget password page using email?

danishjo
Автор

Nice sharing, on local is okay but on testing server cannot define token:
{
"status": false,
"message": "Token is not defined."
}

khonchanneth
Автор

Does this library support silent login?

ALaaHamoudah
Автор

How to logout using jwt token in codeigniter ?? Please help me sir

shravankumarpatil
Автор

Thank you for the video, can u please help to fix this problem,
Array
(
[status] =>
[message] => Token is not defined.
)
this happened whey I try to get the access token, exit;

ALaaHamoudah
Автор

i can not get file Authorization_token where does it located?

charlesthomas
Автор

Really helpful articles. What if I had multiple role users? for example admin and customer. I would be glad if you respond me.

danishjo
Автор

where can i get jwt.php in controller ?

muhammadfaisalbudiman
welcome to shbcf.ru