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
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 Sep 25, 2023
1 parent e613c04 commit 0b4094a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
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
10 changes: 9 additions & 1 deletion 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 @@ -106,9 +108,15 @@ export const OAUTH_PROVIDERS: OAuthProviderData[] = [
{
provider: 'linkedin',
strategy: 'oauth_linkedin',
name: 'LinkedIn',
name: 'LinkedIn (Deprecated)',
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-connection-with-linkedin-oidc',
},
{
provider: 'github',
strategy: 'oauth_github',
Expand Down

0 comments on commit 0b4094a

Please sign in to comment.