The JWT token is useful for systems that require lightweight authentication methods.
I used this for login on web site.
Web is public data storage differ from native application so anyone can see the data if they want.
That means, anyone can get there tokens and modified if they want.
To prevent this, use the JWT token.
If you want to know aboud JWT token detail, see https://en.wikipedia.org/wiki/JSON_Web_Token
Basically JWT token use single key that is made by symmetric-key algorithm.
This is vulnerable to security.
So I thought about how to encrypt the key using public key authentication method, and found the corresponding module.
composer module : firebase/php-jwt
link : https://packagist.org/packages/firebase/php-jwt
It's super easy !
Want to make keys, See
http://chicrock.tistory.com/136
To create the right public key
'Develop > PHP' 카테고리의 다른 글
전화번호 체크하기(휴대전화, 유선, 대표번호 등등) (0) | 2018.10.23 |
---|---|
Trait (0) | 2018.05.02 |
php_value 값 설정하기 (0) | 2018.02.02 |
가상화폐 실시간 가격정보 받아오는 방법 (4) | 2018.01.13 |
[PHP] query string을 통해서 정상적으로 파라미터가 전달되지 않을때 (0) | 2017.09.20 |