Skip to content

Feature: Add OAuth2 provider for Hugging Face #13067

Closed

Description

@arpit10128

🔖 Enhancement description

Feature Request

Description

Appwrite currently supports a wide range of OAuth2 providers, but it does not appear to support authentication via Hugging Face.

I'd like to add a new OAuth2 provider for Hugging Face by implementing the OAuth authorization code flow following the existing provider structure in src/Appwrite/Auth/OAuth2 and the guide in docs/tutorials/add-oauth2-provider.md.

Motivation

Hugging Face is widely used by developers working with AI and machine learning. Supporting "Sign in with Hugging Face" would make it easier for applications built on Appwrite to authenticate users from the Hugging Face ecosystem.

Proposed implementation

  • Add src/Appwrite/Auth/OAuth2/HuggingFace.php
  • Implement:
    • Login URL
    • Access token exchange
    • Refresh token flow
    • User profile retrieval
    • Email and verification mapping
    • Credential verification
  • Add any required tests and documentation following the existing OAuth providers.

I'm happy to work on this feature and submit a pull request if this proposal is accepted.

🎤 Pitch

I'd like to propose adding Hugging Face as a supported OAuth2 authentication provider.

Appwrite already supports many OAuth2 providers such as GitHub, Google, Microsoft, Discord, and others, but it doesn't appear to support Hugging Face authentication.

Hugging Face has become a widely used platform in the AI and machine learning ecosystem. Supporting "Sign in with Hugging Face" would allow applications built with Appwrite to authenticate users using their Hugging Face accounts.

If this feature aligns with the project's roadmap, I'd be happy to implement it following the existing OAuth2 provider structure in src/Appwrite/Auth/OAuth2 and submit a pull request.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. added
    product / auth
    product / databases
    product / messaging
    product / storage
    on Aug 1, 2026
  2. arpit10128 commented on Aug 1, 2026

    @arpit10128
    ContributorAuthor

    I'd be happy to work on implementing this feature if the maintainers think it's a good fit for Appwrite.

  3. oindreela04 commented on Aug 2, 2026

    @oindreela04

    Hi! I'd be interested in working on this feature if the maintainers decide to move forward with it. Could I be assigned to this issue if it's accepted?

  4. bhardwajparth51 commented on Aug 3, 2026

    @bhardwajparth51
    Contributor

    would be a good feature

  5. arpit10128 commented on Aug 3, 2026

    @arpit10128
    ContributorAuthor

    Sounds good. I've started working on the implementation and will open a PR once it's ready.

  6. Meldiron commented on Aug 21, 2026

    @Meldiron
    Contributor

    I believe this has been merged 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

product / authproduct / databasesproduct / messagingproduct / storage

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions