Skip to content

Add option to enable legacy API token by default #7355

Closed
@harrymander

Description

@harrymander

Is your feature request related to a problem? Please describe.
v1.17.0 has added JWT authentication. However we would still like to use the legacy API tokens. The user token can be set via the --user-token CLI flag or LABEL_STUDIO_USER_TOKEN env var; however, the legacy token is still disabled by default (have to manually enable in the org settings in the web UI).

Describe the solution you'd like
A CLI flag e.g. --enable-legacy-api-token and corresponding environment variable LABEL_STUDIO_ENABLE_LEGACY_API_TOKEN to enable the legacy token that was set via --user-token/LABEL_STUDIO_USER_TOKEN.

Describe alternatives you've considered
None

Additional context
N/A

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