`
sillycat
  • 浏览: 2539366 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Auth Solution(2)JWT Encode and Decode

 
阅读更多
Auth Solution(2)JWT Encode and Decode

Spring Boot 2.0 and OAUTH
https://github.com/longfeizheng/springboot2.0-oauth2

JWT Repo
https://github.com/chenlein/springboot-oauth
JWT Blog
https://www.codetd.com/article/2404205
https://blog.csdn.net/chenleiking/article/details/80890858

Another example
https://www.jianshu.com/p/d80061e6d900
https://gitee.com/LinYuanTongXue/OAuth2-Demo

Official JWT
https://jwt.io/

Try this example
https://github.com/sermore/spring-glee-o-meter
https://github.com/sermore/glee-o-meter
https://github.com/angular/angular-cli

Check my NPM version
> node --version && npm --version
v11.5.0
6.9.0

Run the command
> sudo npm install -g @angular/cli

Check version
> ng version
Angular CLI: 7.3.8
Node: 11.5.0
OS: darwin x64

Clone this project
https://github.com/sermore/glee-o-meter
> npm install
> ng build

Clone this project
https://github.com/sermore/spring-glee-o-meter

Build with this command
> mvn clean package

JWT library and server
https://github.com/jwtk/jjwt
https://stackoverflow.com/questions/37722090/java-jwt-with-public-private-keys

My PHP version
> php --version
PHP 7.2.12 (cli) (built: Nov 17 2018 22:16:25) ( ZTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

Download the PHP library
> curl -sS https://getcomposer.org/installer | php

Install the dependencies
> php composer.phar install

Run the demo
> php src/jwtphp.php


References:
https://github.com/leftso/demo-spring-boot-security-oauth2

sample
https://github.com/longfeizheng/springboot2.0-oauth2
https://github.com/chenlein/springboot-oauth

https://stackoverflow.com/questions/48255269/cant-install-angular-cli-on-mac

Another useful example
https://github.com/tinmegali/Oauth2-Stateless-Authentication-with-Spring-and-JWT-Token
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics