Skip to content

Instantly share code, notes, and snippets.

@isopropylcyanide
Last active October 30, 2021 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isopropylcyanide/a4e8556814dbf28dc3320be59785b807 to your computer and use it in GitHub Desktop.
Save isopropylcyanide/a4e8556814dbf28dc3320be59785b807 to your computer and use it in GitHub Desktop.
Postman collection dump (Updated Nov 2021) for https://github.com/isopropylcyanide/Jwt-Spring-Security-JPA
{
"info": {
"_postman_id": "cb2d48b5-a05b-4f9b-85d7-50f2d1f35f23",
"name": "JWT Auth",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Register a User",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"amangarg1995sep@gmail.com\",\n \"password\": \"amangarg\",\n \"registerAsAdmin\": true\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:9004/api/auth/register",
"host": [
"localhost"
],
"port": "9004",
"path": [
"api",
"auth",
"register"
]
}
},
"response": []
},
{
"name": "Reset Password link",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"amangarg1995sep@gmail.comd\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:9004/api/auth/password/resetlink",
"host": [
"localhost"
],
"port": "9004",
"path": [
"api",
"auth",
"password",
"resetlink"
]
}
},
"response": []
},
{
"name": "Refresh JWT Token for Logged In User",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"refreshToken\": \"d029e0fa-80f5-4768-837c-7e85a0f94960\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:9004/api/auth/refresh",
"host": [
"localhost"
],
"port": "9004",
"path": [
"api",
"auth",
"refresh"
]
}
},
"response": []
},
{
"name": "Reset Password",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"amangarg1995sep@gmail.com\", \"password\": \"P1\",\n \"confirmPassword\": \"P1\",\n \"token\": \"63b047b9-e53c-4246-916e-2093e9b104e8\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:9004/api/auth/password/reset",
"host": [
"localhost"
],
"port": "9004",
"path": [
"api",
"auth",
"password",
"reset"
]
}
},
"response": []
},
{
"name": "User Me",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNjM1NjE0NTY4LCJleHAiOjE2MzU2MTU0Njh9.d8CJYduoC44njutphODoezheSt_so3Doc9g1RSiMaDU_qJwY0_3Ym4092hFkHsh-jbyB_9i66LbwSEE-szAgEw",
"type": "text"
}
],
"url": {
"raw": "localhost:9004/api/user/me",
"host": [
"localhost"
],
"port": "9004",
"path": [
"api",
"user",
"me"
]
}
},
"response": []
},
{
"name": "Check Email in Use",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:9004/api/auth/checkEmailInUse?email=amangarg1995sep@gmail.com",
"host": [
"localhost"
],
"port": "9004",
"path": [
"api",
"auth",
"checkEmailInUse"
],
"query": [
{
"key": "email",
"value": "amangarg1995sep@gmail.com"
}
]
}
},
"response": []
},
{
"name": "Admin Me",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNjM1NjE0NTY4LCJleHAiOjE2MzU2MTU0Njh9.d8CJYduoC44njutphODoezheSt_so3Doc9g1RSiMaDU_qJwY0_3Ym4092hFkHsh-jbyB_9i66LbwSEE-szAgEw",
"type": "text"
}
],
"url": {
"raw": "localhost:9004/api/user/admins",
"host": [
"localhost"
],
"port": "9004",
"path": [
"api",
"user",
"admins"
]
}
},
"response": []
},
{
"name": "Logging in Valid User",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"amangarg1995sep@gmail.com\",\n \"password\": \"P1\",\n \"deviceInfo\": {\n \"deviceId\": \"D1\",\n \"deviceType\": \"DEVICE_TYPE_ANDROID\",\n \"notificationToken\": \"N1\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:9004/api/auth/login",
"host": [
"localhost"
],
"port": "9004",
"path": [
"api",
"auth",
"login"
]
}
},
"response": []
},
{
"name": "Logout User",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNjM1NjE1NTk5LCJleHAiOjE2MzU2MTY0OTl9.q6F3Z9vTl1QqQj6V4fChKhFelbIhr6XaBRbYx5Qm1veRR5zr33ta44TKcaJS_x2E26bljNyOPeSJ6Gekf5lZEQ",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{ \n \"deviceInfo\": {\n \"deviceId\": \"D1\",\n \"deviceType\": \"DEVICE_TYPE_ANDROID\",\n \"notificationToken\": \"N1\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:9004/api/user/logout",
"host": [
"localhost"
],
"port": "9004",
"path": [
"api",
"user",
"logout"
]
}
},
"response": []
},
{
"name": "Verifying User Email",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"a@b.com\",\n \"password\": \"HI12\",\n \"deviceInfo\": {\n \"deviceId\": \"D1\",\n \"deviceType\": \"DEVICE_TYPE_ANDROID\",\n \"notificationToken\": \"N1\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:9004/api/auth/registrationConfirmation?token=857c2a3c-636c-4494-bd2e-8a05e59f4860",
"host": [
"localhost"
],
"port": "9004",
"path": [
"api",
"auth",
"registrationConfirmation"
],
"query": [
{
"key": "token",
"value": "857c2a3c-636c-4494-bd2e-8a05e59f4860"
}
]
}
},
"response": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment