Skip to content

Authenticated user API #47

@andrew

Description

@andrew

The forge APIs all support fetching the authenticated user's profile but the library doesn't expose this.

  • GitHub: GET /user
  • GitLab: GET /api/v4/user
  • Gitea/Forgejo: GET /api/v1/user

A GetAuthenticatedUser() method on the Forge interface (or a new UserService) would allow consumers to get the current user's username, avatar URL, and email after authenticating.

This is needed for applications that use OAuth to authenticate users via forges and need to display user profile information.

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