项目作者: codependent

项目描述 :
Spring Boot 2 OAuth2 Authorization Server with Jwt tokens
高级语言: Java
项目地址: git://github.com/codependent/oauth2-authorization-server.git
创建时间: 2018-12-01T09:27:28Z
项目社区:https://github.com/codependent/oauth2-authorization-server

开源协议:

下载


Spring Boot 2 Oauth2 Authorization Server with jwt tokens

Build Status

Certificate configuration

Keypair generation:
keytool -genkeypair -alias jwtcert -keyalg RSA -keypass mypass -keystore authorization-server.jks -storepass mypass

Export public certificate:
keytool -list -rfc --keystore authorization-server.jks | openssl x509 -inform pem -pubkey
keytool -list -rfc --keystore authorization-server.jks | openssl x509 -inform pem -pubkey -noout

Usage

Token request:
http://localhost:8080/oauth/authorize?client_id=front-app&redirect_uri=http://localhost/tonr2/sparklr/photos&response_type=token&scope=operate&state=g72OJm

Retrieve signing cert from server:
http://localhost:8080/oauth/token_key