Search packages, repositories and app categories

Package detailsv5.0.2

oidc

A comprehensive OpenIdConnect plugin that works on all platforms (android, ios, windows, linux, web, macos)

AndroidiOSWebmacOSWindowsLinux
30-day downloads
32K
Likes
51
Pub points
155

Install package

flutter pub add oidc

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The oidc package is a comprehensive OpenID Connect plugin designed for Flutter applications, offering cross-platform authentication support across Android, iOS, Web, macOS, Windows, and Linux. It enables secure user authentication using the OpenID Connect protocol, simplifying integration with identity providers. The plugin handles token management, session handling, and authorization flows seamlessly, ensuring consistent behavior regardless of platform. Built with developer experience in mind, it supports modern authentication workflows like PKCE and provides clear APIs for customization.

Use cases

  • Secure login with identity providers
  • Cross-platform authentication
  • Single sign-on implementation
  • User session management
  • Integration with OAuth2/OIDC servers
  • Web and mobile app authentication

Key features

  • Full platform support (Android, iOS, Web, macOS, Windows, Linux)
  • Built-in PKCE support
  • Token refresh and storage management
  • Easy integration with OIDC providers
  • Consistent API across platforms
  • Secure credential handling

Suitable for

  • Flutter apps requiring secure authentication
  • Developers building multi-platform apps
  • Projects using OpenID Connect or OAuth2
  • Teams integrating with enterprise identity providers
  • Apps needing SSO capabilities

Considerations

  • Requires proper configuration of OIDC provider
  • May need additional setup for custom domains or scopes
  • Depends on underlying platform's web view or native auth flow
  • Not suitable for non-OIDC authentication systems
  • Limited to OAuth2/OIDC-based identity providers

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

oidc

openid certification

melos codecov style: very good analysis License: MIT

The most comprehensive OpenIdConnect package for dart.

This is a Mono repo of multiple packages:

  • oidc_core: The main dart package, it implements the basic openid/oauth specification, except the platform specific parts (like redirection)
  • oidc: builds on top of oidc_core, and adds platform-specific parts, this also contains the UserManager class.
  • oidc_default_store: the default OidcStore store implementation.
  • oidc_cli: a provider-agnostic CLI for authenticating against an OIDC provider.

Make sure you read the Static Badge for extra information.

Code Coverage graph

coverage_graph


Generated by the Very Good CLI 🤖

Categories

Dependencies

Dependency list 8 items

  • jose_plus^1.0.1
  • oidc_android^3.0.1
  • oidc_core^4.0.0
  • oidc_darwin^1.1.3
  • oidc_linux^1.0.4
  • oidc_platform_interface^1.0.4
  • oidc_web^1.0.5
  • oidc_windows^1.0.4

Source repository

Projects using this package