FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Linkedin identity provider

    Scheduled Pinned Locked Moved
    General Discussion
    3
    14
    3.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • danD
      dan @raphaelmcgee
      last edited by

      Hi @raphaelmcgee !

      Can you please enable debugging on the LinkedIn identity provider? Then try to log in using LinkedIn.

      You'll see more information in the Event Log (go to System -> Event Log). That may help you debug the issue yourself. If not, please share any messages from that log (scrubbing any PII, of course).

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      R 1 Reply Last reply Reply Quote 0
      • R
        raphaelmcgee @dan
        last edited by

        @dan
        Hi Dan,
        This is the latest event log message i've been getting.

        Request to the [https://www.linkedin.com/oauth/v2/accessToken] endpoint failed.
        Status code [401]

        Error response is
        {
        "error" : "invalid_client",
        "error_description" : "Client authentication failed"
        }

        Identity provider is setup like this:
        e40eb26c-eea4-44d9-abad-ee29fec450fc-image.png
        Reconcile lambda is setup like mentioned in the GitHub link above.
        Client id / secret match the one provided in linkedin.
        One thing I dont really understand is the scope field. In the tutorial it wants scope named r_emailaddress and r_profilelite but on the linked in page its named something else.
        23286102-efab-4c9f-8cf4-70c16637dd31-image.png

        danD 1 Reply Last reply Reply Quote 1
        • danD
          dan @raphaelmcgee
          last edited by

          @raphaelmcgee Can you please share the link to the LinkedIn docs you followed?

          Also, what does the event log say?

          --
          FusionAuth - Auth for devs, built by devs.
          https://fusionauth.io

          R 2 Replies Last reply Reply Quote 0
          • R
            raphaelmcgee @dan
            last edited by

            @dan
            Hi, not really sure what docs you are referring to, I followed the guide from your site (https://fusionauth.io/docs/v1/tech/identity-providers/linkedin). If your referring to the picture showing the scopes, that is from the linkedin developer app auth page. The event log is also posted above. Ill paste it here again.

            Request to the [https://www.linkedin.com/oauth/v2/accessToken] endpoint failed.
            Status code [401]

            Error response is
            {
            "error" : "invalid_client",
            "error_description" : "Client authentication failed"
            }

            1 Reply Last reply Reply Quote 1
            • R
              raphaelmcgee @dan
              last edited by

              @dan
              Hi Dan,
              Maybe these docs are of use? https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2?context=linkedin%2Fconsumer%2Fcontext

              danD 1 Reply Last reply Reply Quote 0
              • danD
                dan @raphaelmcgee
                last edited by

                @raphaelmcgee Ah, thanks, the MS docs are what I was looking for.

                --
                FusionAuth - Auth for devs, built by devs.
                https://fusionauth.io

                danD 1 Reply Last reply Reply Quote 0
                • danD
                  dan @dan
                  last edited by

                  @raphaelmcgee

                  If this is blocking you, one option would be to try the OpenID Connect Identity Provider, documented here: https://fusionauth.io/docs/v1/tech/identity-providers/openid-connect/

                  From scanning the LinkedIn docs, it looks like they support OpenID Connect.

                  Will report back with more info as I investigate.

                  --
                  FusionAuth - Auth for devs, built by devs.
                  https://fusionauth.io

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    raphaelmcgee @dan
                    last edited by

                    @dan
                    Im already using the openid connect identity provider (see picture above). I've also tried the linkedin indentity provider you guys provide but that also doesnt work.

                    danD 1 Reply Last reply Reply Quote 0
                    • danD
                      dan @raphaelmcgee
                      last edited by

                      @raphaelmcgee Ah, sorry, I missed that you were already using the OIDC provider. Let me take a look at get back to you.

                      --
                      FusionAuth - Auth for devs, built by devs.
                      https://fusionauth.io

                      danD 1 Reply Last reply Reply Quote 0
                      • danD
                        dan @dan
                        last edited by

                        @raphaelmcgee This is a bug. I filed an issue here: https://github.com/FusionAuth/fusionauth-issues/issues/2496

                        There's no workaround right now that I know of, but you can follow that bug for progress on fixing this issue.

                        --
                        FusionAuth - Auth for devs, built by devs.
                        https://fusionauth.io

                        R 1 Reply Last reply Reply Quote 1
                        • R
                          raphaelmcgee @dan
                          last edited by

                          @dan
                          Thanks so much for your help. I'll keep an eye out on the git issue : )

                          1 Reply Last reply Reply Quote 0
                          • V
                            vkumar
                            last edited by

                            Hi @dan, I'm trying to integrate the LinkedIn sign-in option to the default fusionauth login page using the updated approach of LinkedInhttps://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2?context=linkedin%2Fconsumer%2Fcontext.
                            But I'm getting the below error.Screenshot from 2023-10-06 09-26-27.png .
                            I have added all the scope that is mentioned LinkedIn developer portal but still issue is still not resolved.
                            Screenshot from 2023-10-06 12-01-57.png

                            danD 1 Reply Last reply Reply Quote 1
                            • danD
                              dan @vkumar
                              last edited by

                              @vkumar I'd keep an eye on the github issue (or even comment with your current use case if you want to). I suspect it has a similar root cause.

                              --
                              FusionAuth - Auth for devs, built by devs.
                              https://fusionauth.io

                              1 Reply Last reply Reply Quote 1
                              • First post
                                Last post