Skip to content

Instantly share code, notes, and snippets.

@pluone
pluone / JWT Example.md
Created July 7, 2017 10:05 — forked from richardgill/JWT Example.md
JWT Example (Java)

#Login via HTTP JSON api to get JWT token

##Client does login request

POST https://myapplication.com/login, body: {username: 'richardgill', password: 'password'}

Server receives request. Takes credentials and checks they are correct.

Server uses secret key: "secretkey123!" to generate a jwt token. (Using jwt library)