linkedin_login
3.2.3, released 11 months ago by an unverified publisher
Library for login with LinkedIn OAuth V2 service with OpenID Connect.
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.
- flutter_web_auth_2
Flutter plugin for authenticating a user with a web service.
93Compare - twitter_login
Flutter plugin for authentication using Twitter APIs OAuth service
50Compare - googleapis_auth
Obtain Access credentials and authenticated HTTP clients for Google APIs using OAuth 2.0.
91Compare - firebase_ui_oauth
Firebase UI OAuth widgets for authentication with social providers
84Compare
Works with
Packages commonly used together with linkedin_login: ones it builds on, ones built on it, and its own family.
- uuidlinkedin_login depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- rxdartlinkedin_login depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- webview_flutterlinkedin_login depends on itFlutter plugin that embeds a native WebView widget.