KeySpring Backend is the core authentication API for the KeySpring system. Built with Java Spring Boot, it handles secure credential storage, authentication logic, and integration with client applications.
- Secure authentication and credential management.
- API for registering applications and generating client credentials.
- Stateless architecture with future support for token revocation and app secret rotation.
- Backend Framework: Java Spring Boot ☕
- Database: PostgreSQL 🐘
- Security: Spring Security 🔒
To get the KeySpring Backend/API up and running, follow these steps:
- Install Java Development Kit (JDK 17 or later) ☕
- Install Gradle 🛠️
- Set up a PostgreSQL database 🐘
- Clone the repository:
git clone https://github.com/majiinB/KeySpring-API.git cd KeySpring-API
- Create the
application.properties
file:
In thesrc/main/resources
directory, create a file namedapplication.properties
and configure the following fields:# Application Name spring.application.name=KeySpring # JWT jwt.secret.key=your_jwt_secret_key # Database connection spring.datasource.username=your_database_username spring.datasource.password=your_database_password spring.datasource.url=jdbc:postgresql://localhost:5432/keyspring # JPA and Hibernate spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect spring.jpa.properties.hibernate.format_sql=true # Flyway spring.flyway.baseline-on-migrate=true spring.flyway.locations=classpath:db/migration # Jackson spring.jackson.deserialization.fail-on-unknown-properties=false
We welcome contributions from the community! To contribute:
- Fork the repository 🍴
- Create a new branch 🛤️:
git checkout -b feature/YourFeature
- Commit your changes 📝:
git commit -m 'Add some feature'
- Push to the branch ⬆️:
git push origin feature/YourFeature
- Open a Pull Request 📬
KeySpringg is licensed under the MIT License - see the LICENSE file for details.