Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Linkedin Provider #32

Open
krankos opened this issue Jun 13, 2023 · 3 comments
Open

Problem with Linkedin Provider #32

krankos opened this issue Jun 13, 2023 · 3 comments

Comments

@krankos
Copy link

krankos commented Jun 13, 2023

When using the Linkedin Provider the auth fails with error 'Client authentication failed'

link to repo: repo
link to deploy: deploy

@rogered1320
Copy link

I have the same problem, does anyone know of a solution to temporarily fix this?

@davinun99
Copy link

Also Having problems with linkedin, any solutions for this?

@davinun99
Copy link

davinun99 commented Apr 25, 2024

fixed with this on my auth.config.js:

import Linkedin from "@auth/core/providers/linkedin";
import { defineConfig } from "auth-astro";

export default defineConfig({
	providers: [
		Linkedin({
			clientId: import.meta.env.LINKEDIN_CLIENT_ID,
			clientSecret: import.meta.env.LINKEDIN_CLIENT_SECRET,
			issuer: "https://www.linkedin.com/oauth",
			jwks_endpoint: "https://www.linkedin.com/oauth/openid/jwks",
			authorization: { params: { scope: "profile email openid" } },
			async profile(profile) {
				return {
					id: profile.sub,
					name: profile.name,
					firstname: profile.given_name,
					lastname: profile.family_name,
					email: profile.email,
				};
			},
		}),
	],
	debug: true,
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants