Register an OAuth application
Create an OAuth application on Hugging Face to obtain a Client ID and Client Secret.
Sign in to Hugging Face
Sign in on the Hugging Face log-in page with your Username or Email address and Password, then click Login.

Fill in the application details
Open the new OAuth application form. On Create an OAuth app, type a name into Application Name, then untick Public app (no client secret) — use PKCE / device code flow for authentication.
- Public app (no client secret) is ticked by default, and a public application issues no client secret, which this connector requires.
- Homepage URL, Logo and Token Expiration are optional and can be left at their defaults.

Select the default scopes
Under Default Scopes, tick the permissions this integration needs. Hugging Face applies them only when an authorization request does not name its own scopes, and StackOne always names them, so what you tick here does not cap or change what a connection receives. Tick them anyway so the application’s own settings page reflects what it is used for. The scopes that take effect are the ones in the Scopes field in the StackOne Connector profile.

Add the redirect URL and create the application
Under Redirect URLs, paste the StackOne callback URL exactly as shown, then click Create application.
- Callback URL:
https://api.stackone.com/connect/oauth2/huggingface/callback - The redirect URL must match exactly — Hugging Face rejects any mismatch.
- Use the + button beside Redirect URLs if you need to register more than one.

Copy the Client Secret
Hugging Face shows Save your Client Secret with the value and a Copy button. Copy it, then paste it into the Client Secret field in the StackOne Connector profile.
- The client secret is only displayed once and cannot be retrieved later — close the modal with Done only after you have copied it.
- If it is lost, use Rotate secret on the application’s settings page to issue a new one.

Copy the Client ID
On the application’s settings page, the Credentials panel shows Client ID with a copy button beside it. Copy it, then paste it into the Client ID field in the StackOne Connector profile.
- Under Client Secret the page states that a client secret is set and was only displayed once; Rotate secret issues a new one and Remove secret turns the application back into a public app.

Granting access to an organization
Scopes such as read-repos and read-billing also apply to organizations.
- The user chooses which of their organizations to grant access to during consent.
- Access to an organization’s private repositories requires the user to select that organization at consent time.
Creating the StackOne Connector Profile
To create the Connector Profile in StackOne for Hugging Face:Navigate to Connector Profiles
Create New Connector Profile
- Click + Connector Profile
- Search for and select Hugging Face
- Select Type as OAuth 2.0
- Fill out the fields using details retrieved from your provider:
- Client ID
- Client Secret
- Scopes (Optional)
- (Optional) Select Actions to be enabled for this Connector Profile
- Click Create profile