Skip to content

[Bug]: login is required even though arkosConfig authentication.enabled = false #117

@Uanela

Description

@Uanela

Bug Description

login is required even though arkosConfig authentication.enabled = false

Expected Behavior

This should not require login

Steps to Reproduce

  1. disable authentication.enabled = false
  2. and try to call a route that have authentication setup

Arkos configuration

const config: ArkosConfig = {
  middlewares: {
    cors: {
      allowedOrigins:
        process.env.NODE_ENV !== "production" ? "*" : "your-production-url",
    },
  },
  authentication: {
    mode: "static",
    login: {
      allowedUsernames: ["email"],
    },
    enabled: false,
  },
  validation: {
    resolver: "zod",
  },
  swagger: {
    mode: "zod",
    strict: false,
  },
  routers: {
    strict: "no-bulk",
  },
};

Possible Workaround


Package

arkos

Arkos.js Version (or Package version)

1.4.0-beta

Node.js Version

22.x

Database

PostgreSQL

Operating System

macOS

Pre-submission Checklist

  • I have searched existing issues to ensure this bug hasn't been reported
  • I have tested this on the latest beta version
  • I can reproduce this bug consistently

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions