Skip to content

OIDC auth: Allow the source field of username to be configurable instead of fixed to sub #21518

Closed
@NexZhu

Description

@NexZhu

Feature Description

Currently in OIDC auth, Gitea get username from sub field returned from OIDC provider, which is often UUID. This should be configurable, for example to use preferred_username instead of sub.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions