Skip to content
/ trepub Public

A boilerplate to start with, consisting: Spring MVC, OAuth2, MySQL, ...

Notifications You must be signed in to change notification settings

snofang/trepub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trepub

** as a boilerplate consisting the followings: **

  • Spring MVC
  • OAuth2
  • MySQL

** keyStore generation commands **

  • keytool -genkeypair -alias jwt -keyalg RSA -keypass trepub123 -keystore jwt.jks -storepass trepub123
  • keytool -importkeystore -srckeystore jwt.jks -destkeystore jwt.jks -deststoretype pkcs12
  • keytool -list -rfc --keystore jwt.jks | openssl x509 -inform pem -pubkey

** db **

  • trepub_db_schema.sql
  • trepub_db_content.sql

** token end point commands ** curl -X POST "localhost:9999/oauth/token?grant_type=password&username=admin&password=password" -H "Authorization: Basic YWRtaW5hcHA6cGFzc3dvcmQ=" -H "Cache-Control: no-cache"

** sample protected resource access ** curl -X GET http://localhost:9999/context -H "Authorization: Bearer {access_token}"

About

A boilerplate to start with, consisting: Spring MVC, OAuth2, MySQL, ...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages