oidc
5.0.2, released 6 weeks ago by bdaya-dev.com
OpenID Connect RP plugin for Flutter supporting all platforms.
What it does
Implements an OpenID Connect Relying Party plugin for Flutter that works across Android, iOS, Windows, Linux, Web, and macOS. It handles authorization flows, token refreshing, discovery, session management, and client registration.
AI-written summary of version 5.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need OpenID Connect or OAuth authentication in a cross-platform Flutter app
- You require support for platforms like Windows, Linux, and macOS alongside mobile and web
Skip it when
- You only need a simple proprietary backend client like Firebase Authentication without OIDC standards
Strengths
- Supports all Flutter platforms including desktop
- OpenID Connect Certified Relying Party with conformance testing
- High customizability and automatic token refresh rotation
Weaknesses
- Session management features have platform constraints (web only for check_session_iframe)
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 8
Requires platform-specific redirect setup and reading the documentation wiki for getting started steps.
final manager = OidcUserManager.lazy(
discoveryDocumentUri: OidcUtils.getOpenIdConfigWellKnownUri(
Uri.parse('https://server.example.com'),
),
);
await manager.init();
final newUser = await manager.loginAuthorizationCodeFlow();Alternatives
Packages that do the same job and could replace oidc.
- openidconnect
Standards-compliant OpenID Connect client library for Flutter with multi-flow authentication support.
76Compare - firebase_ui_oauth
Firebase UI OAuth widgets for authentication with social providers
84Compare - firebase_ui_oauth_google
Flutter widgets for Google OAuth sign‑in using Firebase UI.
81Compare - firebase_ui_oauth_apple
Firebase UI widgets for Sign in with Apple authentication.
77Compare
Works with
Packages commonly used together with oidc: ones it builds on, ones built on it, and its own family.