Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

60 Commits

Repository files navigation

Simple User - Rate Limit

Simple signup and signin with spring boot json web token and rate limit

Featured :

  • Spring Boot
  • Spring Security
  • Spring Data JPA
  • JWT Authentication & Authorization
  • JWT Token
  • Refresh Token
  • Rate Limit (Public, User, Moderator, Admin, Root Access)

Roles

  • USER
  • MODERATOR
  • ADMIN
  • ROOT

API

MethodsUrlAction
POST/api/auth/signupsignup new account
POST/api/auth/signinlogin an account
POST/api/auth/refreshtokenget new token from refresh token
GET/api/test/allpublic access content
GET/api/test/useronly user access content
GET/api/test/modonly moderator access content
GET/api/test/adminonly admin access content
GET/api/test/rootonly root access content

Format JSON

Signup

{
"nama": "{name}",
"email": "{email}",
"username": "{username}",
"password": "{password}",
"roles": [
{
"id": {id_roles}
}
]
}

Signin

{
"username": "{username}",
"password": "{password}",
}

Refresh Token

{
"refreshToken": "{refreshtoken}"
}

Database Relational

About

Simple signup and signin with spring boot and spring security json web token

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages