Skip to content
pubscout

linkedin_login

3.2.3, released 11 months ago by an unverified publisher

Library for login with LinkedIn OAuth V2 service with OpenID Connect.

Unverified publisher
$ flutter pub add linkedin_login
Source repository

What it does

Provides Flutter widgets and services to authenticate users using LinkedIn OAuth 2.0 and OpenID Connect. It handles retrieving user profile details and authorization codes via a web view.

AI-written summary of version 3.2.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to implement Sign In with LinkedIn using OpenID Connect in your Flutter app.
  • You want to retrieve LinkedIn profile information and access tokens directly through widgets.

Skip it when

  • You are building a web application (web is not supported).
  • You require Firebase authentication integration out-of-the-box for LinkedIn.

Strengths

  • Supports modern LinkedIn OpenID Connect authentication flow.
  • Provides ready-to-use widgets like LinkedInUserWidget and LinkedInAuthCodeWidget.

Weaknesses

  • Web platform is not supported due to iframe and JS limitations.
  • No out-of-the-box integration with Firebase.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
8

Requires creating an app on LinkedIn developers console, configuring redirect URL, client ID, client secret, and checking minSdkVersion (at least 19 for Hybrid Composition).

LinkedInUserWidget(
   redirectUrl: redirectUrl,
   clientId: clientId,
   clientSecret: clientSecret,
   onGetUserProfile:
       (UserSucceededAction linkedInUser) {
            print('Access token ${linkedInUser.user.token}');
   },
   onError: (UserFailedAction e) {
            print('Error: ${e.toString()}');
   },
)

Alternatives

Packages that do the same job and could replace linkedin_login.

Works with

Packages commonly used together with linkedin_login: ones it builds on, ones built on it, and its own family.