Logging Token
#
DescriptionTo log into the application, we have two ways
- Login through the UI server (Designed for development and administration)
- Login through the API server ( Designed for day-to-day for operations )
#
UIAccess the DataTrucker UI URL via a browser
- We have two kinds of Authentication Keycloack and Local Access
- Keycloack Auth is available for externalized authentication
- Local user access management managed by data trucker backend database
- The user needs to input values to authenticate
- A username
- A password
- A tenant
- Any type of Authentication
#
APITo login into API server, fire the REST call against API server URL
# For Local Authentication OnlyURL: /api/v1/loginTYPE: POSTBODY (JSON): { "username": "<username>", "password": "<Complex password>", "tenant": "<available tenant>"}
Response: 200 OK{ "username": "<username>", "status": true, "token": "<a JWT Token>"}
# For KeyCloak AuthenticationURL: /api/v1/login-keycloakTYPE: POSTBODY (JSON): { "username": "<username>", "password": "<Complex password>", "tenant": "<available tenant>"}
Response: 200 OK{ "username": "<username>", "status": true, "token": "<a JWT Token>"}