> ## Documentation Index
> Fetch the complete documentation index at: https://thenile.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# HubSpot

> Integrate HubSpot Single Sign-On with Nile Auth

**1. Setup HubSpot Developer Portal**

1. Create a [HubSpot Developer](https://developers.hubspot.com/) account
2. Follow the documentation for [creating an application](https://developers.hubspot.com/docs/guides/apps/public-apps/overview) in HubSpot.
3. Obtain a **Client ID** and **Client Secret** from [HubSpot OAuth](https://developers.hubspot.com/docs/guides/apps/authentication/working-with-oauth). Be sure to set the redirect URL to your application handling the Nile Auth requests.

**2. Save Client ID and Client Secret in Nile**

Save them to your database at `console.thenile.dev` under HubSpot in **Tenants
& Users -> Configuration** ![Hubspot configuration on
console.thenile.dev](https://mintcdn.com/nile/ZhObK_CvFMgzM-yj/images/singlesignon/hubspot.png?fit=max\&auto=format\&n=ZhObK_CvFMgzM-yj\&q=85\&s=75d09e1756c779a36513e4b6309f8e51)

**3. Add the `HubSpot` button to your login page**

The button will redirect the user to HubSpot for authentication. Upon successful authentication, the user will be redirected back to your application.

```jsx theme={null}
import { HubSpot } from '@niledatabase/react';

function App() {
return (

<div>
  <HubSpotSignInButton callbackUrl="/" />
</div>
); }

```

## Related Topics

* [OAuth Concepts](https://thenile.dev/docs/auth/concepts/oauth.md)
* [User Management](https://thenile.dev/docs/auth/concepts/users.md)
* [Other SSO Providers](https://thenile.dev/docs/auth/singlesignon/google.md)

```
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.