Code Monkey home page Code Monkey logo

jjwt-jaxrs-sample's Introduction

sample-jaxrs-jwt

This is a simple demo app for demonstrating how to use JWT tokens for token-based authentication in Java using JJWT library.

Technologies:

Instructions to use:

This is just a server side implementation and does not include client side code. So, you'll need POSTMAN or relevant tool in order to test this on you local system.

Clone this project and set it up in Eclipse. You'll also need to set up environment variable for storing your secret key. Using Eclipse, you can easily do so by going to Run->Run Configurations under Environment tab. You must set the name of the variable as SECRET_KEY_JWT and restart IDE after setting the env. var. It must be strong enough for HMAC-SHA256 Algorithm (>=256bits).

You'll also need MySQL 5.7+. Run the dump SQL files to set up your DB.

Hit /auth_control/auth/ endpoint to generate token and /services_control/todo/list_todos to access your Resources.

References:

License

MIT

jjwt-jaxrs-sample's People

Contributors

nileshprasad137 avatar

Watchers

 avatar  avatar

Forkers

kamikuroro

jjwt-jaxrs-sample's Issues

Todo

  • Handle Token Invalidation after user logs out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.