omniauth-linkedin-oauth2 icon indicating copy to clipboard operation
omniauth-linkedin-oauth2 copied to clipboard

You need to pass the "client_id" parameter

Open jeffgipson opened this issue 5 years ago • 5 comments

Getting this error: You need to pass the "client_id" parameter when I add the client_id manually to the url and hit return it works fine? screenshot:http://snap.recruiterswebsites.com/3d7a462fdf68

jeffgipson avatar Jul 31 '19 14:07 jeffgipson

I'm having the same issue. Did you figure out what is causing this ?

bricechapuis avatar Aug 20 '19 15:08 bricechapuis

No I never got a response

jeffgipson avatar Aug 20 '19 15:08 jeffgipson

This is caused by the client_id not being put into the linkedin log in URL. Has anyone encountered a problem like that before?

matejLukasik avatar Jun 04 '20 08:06 matejLukasik

Hi there, did anyone figure out a way?

clammy77 avatar Nov 20 '20 00:11 clammy77

For others that hit this, it's pretty easy to work around by overwriting the authorize_url.

Example for those using Devise:

config.omniauth :linkedin, ENV['LINKEDIN_APP_ID'], ENV['LINKEDIN_APP_SECRET'], {
    scope: 'r_liteprofile,r_emailaddress',
    authorize_url: "https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=#{ENV['LINKEDIN_APP_ID']}"
  }

gordysc avatar Apr 06 '21 15:04 gordysc