Skip to content

OAuth userinfo empty name fallback #19382

Closed
@luwol03

Description

@luwol03

Feature Description

I tried to setup gitea as a oauth provider for my new penpot instance. However I always got errors from penpot that something is wrong (described here penpot/penpot#1802). After a while of debugging, I found out, that the empty name in the user_info response of the oauth process is causing that problems.

// GET http://myserver:3333/login/oauth/userinfo
{
    "sub": "2",
    "name": "",
    "preferred_username": "user1",
    "email": "user1@gmail.com",
    "picture": "http://myserver:3333/avatar/XXXXXXXXXXXXXXXXXX",
    "groups": null
}

However I feel like returning the value of preferred_username in the name field instead of an empty name (which can cause many issues) would be a good choice.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueLikely to be an easy fixhacktoberfesttype/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