Skip to content

Remove DevSecurityConfig and replace with real authentication #120

@annikaholmqvist94

Description

@annikaholmqvist94

Background

DevSecurityConfig was added temporarily to allow endpoint testing with simulated users via the X-Dev-User HTTP header. It disables CSRF and opens all endpoints without real authentication. This needs to be replaced before the project is considered production-ready.

Tasks

  • Remove src/main/java/org/example/vet1177/config/DevSecurityConfig.java
  • Remove or implement src/main/java/org/example/vet1177/security/auth/dto/AuthResponse.java (currently empty placeholder)
  • Implement real authentication (e.g. JWT)
  • Update SecurityFilterChain so endpoints are properly protected

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions