# `Assent.Strategy.Linkedin`
[🔗](https://github.com/pow-auth/assent/blob/v0.4.0/lib/assent/strategies/linkedin.ex#L1)

Sign In with LinkedIn V2 OpenID Connect strategy.

You'll need the `Sign In with LinkedIn v2` product enabled in your app. See
the [LinkedIn integration
guide](https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2)
for more.

## Usage

    config = [
      client_id: "REPLACE_WITH_CLIENT_ID",
      client_secret: "REPLACE_WITH_CLIENT_SECRET",
      redirect_uri: "http://localhost:4000/auth/callback"
    ]

See `Assent.Strategy.OIDC` for more.

# `authorize_url`

```elixir
@spec authorize_url(Keyword.t()) :: Assent.Strategy.OIDC.on_authorize_url()
```

Generates an OpenID Connect authorization URL.

# `callback`

```elixir
@spec callback(Keyword.t(), map()) :: Assent.Strategy.OIDC.on_callback()
```

Handles an OpenID Connect callback.

# `fetch_user`

```elixir
@spec fetch_user(Keyword.t(), map()) :: {:ok, map()} | {:error, term()}
```

Fetches user data from an ID Token or the UserInfo endpoint.

# `normalize`

Returns user claims without provider-specific normalization.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
