Skip to content

POC around Spring-boot / AngularJS stack (OAuth 2, JPA, Metrics)

Notifications You must be signed in to change notification settings

vspiewak/jbeatnik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JBeatnik

Usage

mvn spring-boot:run

mvn package 
java -Dspring.profiles.active=prod -jar jbeatnik.jar

Sample

curl -i http://localhost:9000/manage/health
curl -i -XPOST -H "Content-Type: application/json" -d '{"username":"test","password":"test","email":"[email protected]"}' http://localhost:9000/api/register 

curl -vu jbeatnikapp:myOAuthSecret 'http://localhost:9000/oauth/token?username=admin&password=admin&grant_type=password'    
curl -vu jbeatnikapp:myOAuthSecret 'http://localhost:9000/oauth/token?grant_type=refresh_token&refresh_token=<refresh_token>'

curl -i -H "Authorization: Bearer <access_token>" http://localhost:9000/api/profile
curl -i -H "Authorization: Bearer <access_token>" http://localhost:9000/manage/metrics
curl -i -H "Authorization: Bearer <access_token>" http://localhost:9000/oauth/logout

sudo python -m smtpd -n -c DebuggingServer localhost:25
curl -i -XPOST -H "Content-Type: application/json" -d '{"email":"[email protected]"}' http://localhost:9000/api/lostpassword
curl -i -XPOST -H "Content-Type: application/json" -d '{"email": "[email protected]","password":"toto","resetPasswordKey":"2de8b058-16ae-483c-a2a1-c26c94b93992"}' http://localhost:9000/api/resetpassword

Docs

About

POC around Spring-boot / AngularJS stack (OAuth 2, JPA, Metrics)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published