Skip to content

Add security package for authentication microservice and security configuration #1

@faizanazim11

Description

@faizanazim11

Overview

Implement a security package that provides:

  1. Authentication Microservice

    • Allow users to define their own token generation logic.
    • Generate and store JWTs against random tokens in Redis.
    • Internal GRPC communication for refreshing JWTs.
  2. Security Configurator Package

    • Provide a security layer and a User Details Schema.
    • Allow microservices to retrieve user details from stored JWTs without exposing security logic.
    • Enable GRPC communication with the authentication service to refresh tokens.
    • Offer a wrapper around the httpx package to ensure secure inter-microservice communication.

Requirements

  • Modular and extensible design for both authentication and security configuration.
  • Simple integration guide for both use cases.
  • Example implementations for both GRPC communication and httpx wrapper usage.

This feature will improve authentication and communication security across microservices by centralizing token management and providing a unified security layer.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions