Skip to content

Commit

Permalink
feat(backend,clerk-js,types): Support the new LinkedIn OAuth Provider (
Browse files Browse the repository at this point in the history
…#1772)

LinkedIn has changed the OAuth flow by replacing it with OpenID Connect.
We have already added support for this in the backend.
  • Loading branch information
fragoulis committed Oct 10, 2023
1 parent f20adc3 commit 9101488
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/serious-zebras-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@clerk/clerk-js': minor
'@clerk/backend': minor
'@clerk/types': minor
---

Add support for LinkedIn OIDC
1 change: 1 addition & 0 deletions packages/backend/src/api/resources/Enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type OAuthProvider =
| 'twitter'
| 'twitch'
| 'linkedin'
| 'linkedin_oidc'
| 'dropbox'
| 'bitbucket'
| 'microsoft'
Expand Down
1 change: 1 addition & 0 deletions packages/clerk-js/src/ui/utils/test/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const socials = Object.freeze(
'oauth_twitter',
'oauth_twitch',
'oauth_linkedin',
'oauth_linkedin_oidc',
'oauth_dropbox',
'oauth_atlassian',
'oauth_bitbucket',
Expand Down
8 changes: 8 additions & 0 deletions packages/types/src/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export type DiscordOauthProvider = 'discord';
export type TwitterOauthProvider = 'twitter';
export type TwitchOauthProvider = 'twitch';
export type LinkedinOauthProvider = 'linkedin';
export type LinkedinOIDCOauthProvider = 'linkedin_oidc';
export type DropboxOauthProvider = 'dropbox';
export type AtlassianOauthProvider = 'atlassian';
export type BitbucketOauthProvider = 'bitbucket';
Expand All @@ -45,6 +46,7 @@ export type OAuthProvider =
| TwitterOauthProvider
| TwitchOauthProvider
| LinkedinOauthProvider
| LinkedinOIDCOauthProvider
| DropboxOauthProvider
| AtlassianOauthProvider
| BitbucketOauthProvider
Expand Down Expand Up @@ -109,6 +111,12 @@ export const OAUTH_PROVIDERS: OAuthProviderData[] = [
name: 'LinkedIn',
docsUrl: 'https://clerk.com/docs/authentication/social-connection-with-linkedin',
},
{
provider: 'linkedin_oidc',
strategy: 'oauth_linkedin_oidc',
name: 'LinkedIn',
docsUrl: 'https://clerk.com/docs/authentication/social-connections/linkedin-oidc',
},
{
provider: 'github',
strategy: 'oauth_github',
Expand Down

0 comments on commit 9101488

Please sign in to comment.