> ## 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.

# LinkedIn

> Integrate LinkedIn Single Sign-On with Nile Auth

**1. Setup LinkedIn Developer Portal**

1. Create a [LinkedIn Developer](https://www.linkedin.com/developers/) account.
2. Navigate to the **My Apps** section and create a new application.
3. Obtain a **Client ID** and **Client Secret** from the [LinkedIn OAuth settings](https://www.linkedin.com/developers/apps/). Be sure to set the redirect URL to your application handling the Nile Auth requests.

> [accordion] Linkedin dashboard example
>
> ![Discord SSO](https://mintcdn.com/nile/6B-b9nH3DSiJ_Uwi/images/auth/linkedinexample.png?fit=max\&auto=format\&n=6B-b9nH3DSiJ_Uwi\&q=85\&s=63d2feb40100820cf51db7d1c8c4d9eb)

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

Save the **Client ID** and **Client Secret** to your database at `console.thenile.dev` under LinkedIn in **Tenants & Users -> Configuration**\\

![LinkedIn configuration on console.thenile.dev](https://mintcdn.com/nile/ZhObK_CvFMgzM-yj/images/singlesignon/linkedin.png?fit=max\&auto=format\&n=ZhObK_CvFMgzM-yj\&q=85\&s=39b07d7a55801a4486c2145fca1d822a)

**3. Add the LinkedIn button to your login page**

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

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

function App() {
  return (
    <div>
      <LinkedIn 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/github.md)


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