Skip to content
pubscout

openidconnect

3.2.1, released 6 days ago by concerti.io

Standards-compliant OpenID Connect client library for Flutter with multi-flow authentication support.

$ flutter pub add openidconnect
Source repository

What it does

Enables OpenID Connect authentication using authorization code flow with PKCE, password flow, and device flow. It handles login, logout, token revocation, token refreshing, and user info retrieval with secure platform storage integration.

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

Use it when

  • You need to authenticate users via an OpenID Connect compliant Identity Provider.
  • You require platform-native authentication views rather than embedded WebViews.

Skip it when

  • You are using Firebase or Supabase authentication and prefer their dedicated SDKs.

Strengths

  • Supports multiple authentication flows including PKCE, password, and device code.
  • Uses endorsed platform implementations and native browser APIs instead of WebViews.
  • Handles token refresh and secure credential storage automatically.

Weaknesses

  • Requires platform-specific configuration for redirect URIs and deep links.
  • macOS requires proper code signing and keychain entitlements.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
10

Requires configuring redirect URIs, custom schemes, or App Links/Universal Links, along with Android Manifest updates, iOS/macOS URL types, and macOS keychain entitlements.

import 'package:openidconnect/openidconnect.dart';

final result = await OpenIdConnect.loginInteractive(
  context: context,
  clientId: 'your_client_id',
  scopes: ['openid', 'profile'],
  issuer: 'https://your-identity-provider',
  redirectUrl: 'my.app://callback',
);

Alternatives

Packages that do the same job and could replace openidconnect.

Works with

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