Skip to content

ACCOUNT_LINKING depends on ENABLE_AUTO_REGISTRATION #27709

@mgx0

Description

@mgx0

Description

our goal is to create a Gitea user and link it to Keycloak credentials, all of this via Gitea REST API. in version 1.18 it was possible by setting Authentication Source to an int (that corresponded to Keycloak auth source ID), but in version 1.20.2 we have to set ACCOUNT_LINKING to "auto".

but without setting ENABLE_AUTO_REGISTRATION to "true" it does not work. Setting ENABLE_AUTO_REGISTRATION=true enables anyone to register at our Gitea instance, which is not what we want (we allow no self-registration).

goal is to have ACCOUNT_LINKING="auto" causing linking Gitea account to Keycloak account without having to set ENABLE_AUTO_REGISTRATION=true

is this possible?

Gitea Version

1.20.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

container in kubernetes

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions