Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bibekaryal86/pets-authenticate
Authentication Service to validate username and password and return JWT token
https://github.com/bibekaryal86/pets-authenticate
bouncy-castle gradle java jjwt jwt rest-api springboot
Last synced: 1 day ago
JSON representation
Authentication Service to validate username and password and return JWT token
- Host: GitHub
- URL: https://github.com/bibekaryal86/pets-authenticate
- Owner: bibekaryal86
- Created: 2021-12-12T02:58:28.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-07T06:02:49.000Z (about 1 month ago)
- Last Synced: 2025-01-07T07:18:27.926Z (about 1 month ago)
- Topics: bouncy-castle, gradle, java, jjwt, jwt, rest-api, springboot
- Language: Java
- Homepage: https://pets-authenticate.appspot.com/pets-authenticate/tests/ping
- Size: 249 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pets-authenticate
This REST API is the authentication service/server for Personal Expenses Tracking System application. This service is
created to use as the authentication server to validate users. It provides two services:* Validate username / password and return user details with token to use in subsequent service calls.
* Validate existing token and provide an updated one with added expiration time.To run the app, we need to supply the following environment variables:
* Active Profile
* SPRING_PROFILES_ACTIVE (development, docker, production)
* PETS Service Security Details:
* BASIC_AUTH_USR_PETSSERVICE (auth username of pets-service)
* BASIC_AUTH_PWD_PETSSERVICE (auth password of pets-service)
* The final run command looks like this:
* java -jar -DSPRING_PROFILES_ACTIVE=development -DBASIC_AUTH_USR_PETSSERVICE=some_username
-DBASIC_AUTH_PWD_PETSSERVICE=some_password JARFILE.jarThis app is one of the five apps that form the PETS (Personal Expenses Tracking System) application:
* https://github.com/bibekaryal86/pets-database
* https://github.com/bibekaryal86/pets-service
* https://github.com/bibekaryal86/pets-authenticate (this)
* https://github.com/bibekaryal86/pets-gateway
* https://github.com/bibekaryal86/pets-spaThis app is deployed in Google Cloud Project. The GCP configurations are found in the `gcp` folder in the project root.
To deploy to GCP, we need to copy the jar file to that folder and use gcloud app deploy terminal command.* App Test Link: https://pets-authenticate.appspot.com/pets-authenticate/tests/ping