Skip to content

TTL token service with Spring Boot, Webflux, Cassandra and REST Assured

Notifications You must be signed in to change notification settings

bend-up/ttl-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

  • Install Cassandra and start it (consider using Docker image)
  • Set proper Cassandra configuration if needed (application should create keyspace and schema automatically)
  • Run application:
mvn spring-boot:run
  • Enjoy generating TTL tokens:
   [m@localhost ttl-token]$ curl -d "url=https://google.pl" http://127.0.0.1:8090/generateToken
   936df19d-100f-4194-b8e5-a542893c5f4a
   [m@localhost ttl-token]$ curl -i http://127.0.0.1:8090/token/936df19d-100f-4194-b8e5-a542893c5f4a
   HTTP/1.1 200 
   Location: https://google.pl
   Content-Length: 0
   Date: Tue, 10 Jul 2018 23:04:03 GMT
   
   [m@localhost ttl-token]$ curl -i http://127.0.0.1:8090/token/936df19d-100f-4194-b8e5-a542893c5f4a
   HTTP/1.1 200 
   Location: https://google.pl
   Content-Length: 0
   Date: Tue, 10 Jul 2018 23:04:24 GMT
   
   [m@localhost ttl-token]$ curl -i http://127.0.0.1:8090/token/936df19d-100f-4194-b8e5-a542893c5f4a
   HTTP/1.1 404 
   Content-Length: 0
   Date: Tue, 10 Jul 2018 23:04:46 GMT   

About

TTL token service with Spring Boot, Webflux, Cassandra and REST Assured

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages