Skip to content
mr4torrPublic

About

POC - Authentication and authorization application with clean architecture

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

Authentication and authorization application

Project developed with the objective of deepening knowledge in Java using the Spring Boot framework, applying the principles of clean architecture and exploring communication between microservices.

Image below shows the database modeling

./assets/diagram-erb.png

Technologies/library

Tasks

This repository is still a work-in-progress. Here's the current progress:

  • Configuration
    • Data structure definition
    • Migration structure definition
    • Domain structure definition
    • Infrastructure structure definition
    • Test structure definition
  • Resources
    • Users
      • Register
      • Validate account
      • Reset password
      • Access blocking
    • Authentication
      • Token validation
      • Token renewal
      • Authentication session
        • Session limiter active per user
        • Invalidate active session
        • List with all active sessions
    • Authorization/Permissions
      • Access group registration
        • Register of permitted actions
    • Organization
      • Register
      • Access blocking
    • Send emails
      • User activation
      • Confirmation of new registration
      • Password reset
    • Configuration
      • Email Settings
      • Files Storage
      • Backups
      • Logs
      • Metrics
      • Export/Import data
  • Event listeners
    • Register organization
    • ???
  • Deployment

Setup

  1. Download the repository git clone [email protected]:mr4torr/saas-auth.git;
  2. Make a copy of the .env.example file and place it as .env;
  3. Create a docker-compose.yml file, this file is used to run the database.
  4. Run docker compose up -d and then run ./mvnw spring-boot:run
  5. Go to http://localhost:8080 to access the API.
    • Access http://localhost:8080/swagger-ui.html to view the API documentation.
  6. Go to ./doc/http to see all mapped endpoints
version: '3.8'
services:
  postgres:
    image: postgres:17.4-alpine
    container_name: saas_db
    environment:
      POSTGRES_DB: saas
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: root
    ports:
      - "5432:5432"
    restart: always

About

POC - Authentication and authorization application with clean architecture

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages