jwt-provider
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Con jwt-provider generamos el Json Web Token Abrimos el proyecto JWT Provider que crea un token jwt del usuario indicado.
dar clic derecho Build para generar el archivo .war
dar clic en Deploy
Seleccionar el archivo war o pegar la ruta
Ingresamos al browser
http://localhost:8080/jwt-provider/auth
Instalaremos httpie en Ubuntu
sudo apt-get install httpie
Ejecutamos
http --form :8080/jwt-provider/auth username=user1 password=user1
Nos muestra el token generado
También podemos probarlo con curl
sudo apt-get install curl
curl -X POST http://localhost:8080/jwt-provider/auth -d "username=user1&password=user1"
Genera la salida
Ingresar
https://jwt.io/
Pegar el JWT generado