Skip to content

Factor out authentication #7

@lukpueh

Description

@lukpueh

The currently only API endpoint in PIA cleanly separates authentication and business logic (SBOM upload), albeit in the same function.

Factoring out authentication improves readability, allows re-use of the authentication implementation for other endpoints, and has the potential to reject requests based on the header and before parsing the body.

Suitable features in FastAPI:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions