Skip to content

Commit 4f5e8e5

Browse files
authored
fix: linkedin_oidc provider error (#1534)
## What kind of change does this PR introduce? Fixes #1533 ## What is the current behavior? Attempting to signInWithOAuth with linkedin_iodc provider results in error 500 ## What is the new behavior? Attempting to signInWithOAuth with linkedin_iodc results in a successful login ## Additional context Error from Supabase Auth Logs: `oidc: id token issued by a different provider, expected \"https://www.linkedin.com\" got \"https://www.linkedin.com/oauth\"`
1 parent e4f2b59 commit 4f5e8e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/provider/linkedin_oidc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func NewLinkedinOIDCProvider(ext conf.OAuthProviderConfiguration, scopes string)
4141
// Linkedin uses a different issuer from it's oidc discovery url
4242
// https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2#validating-id-tokens
4343
ctx := oidc.InsecureIssuerURLContext(context.Background(), IssuerLinkedin)
44-
oidcProvider, err := oidc.NewProvider(ctx, IssuerLinkedin+"/oauth")
44+
oidcProvider, err := oidc.NewProvider(ctx, IssuerLinkedin)
4545
if err != nil {
4646
return nil, err
4747
}

0 commit comments

Comments
 (0)