Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.01 KB

09.security.md

File metadata and controls

29 lines (19 loc) · 1.01 KB

Handling Security

Security settings can be configured in the config_security.conf file.

Generating and Refreshing JWT Tokens

  • To Create a new JWT (JSON Web Token) authorization token use the following endpoint:

http://localhost:8080/auth/token/create

Creating a new token requires basic credential authentication. In Postman select the Authorization tab and create a Basic Auth type, filling it with either admin/admin or guest/guest.

  • To refresh an existing token use the following endpoint:

http://localhost:8080/auth/token/refresh
  • Refreshing or using the obtained Token in Postman requests:

  1. Open Postman and select the Headers tab.
  2. Add a new key-value pair:
    • Key: Authorization
    • Value: Bearer <The-token-with-no-quotes>

Note that the provided postman collection is already configured to automatically refresh tokens.