solid_auth library

Support for flutter apps authenticating to a Solid server.

Copyright (C) 2026, Software Innovation Institute, ANU.

Licensed under the MIT License (the "License").

License: https://choosealicense.com/licenses/mit/.

Authors: Anushka Vidanage Solid Auth — Solid-OIDC authentication flow for Flutter Built on package:oidc (https://pub.dev/packages/oidc) Inspired by the package (https://pub.dev/packages/solid_oidc_auth)

Main entry point. Import this file to access the public API:

import 'package:solid_auth/solid_auth.dart';

Classes

DpopKeyManager
Manages the RSA key pair used for DPoP proofs.
DpopTokenGenerator
Generates DPoP (Demonstrating Proof-of-Possession) proof tokens per RFC 9449 and the Solid-OIDC specification.
SolidAuthData
Data returned after a successful Solid-OIDC authentication.
SolidAuthManager
High-level facade for Solid-OIDC authentication.
SolidOidcConfig
Configuration for building an OidcUserManager targeted at a Solid POD.
SolidOidcManagerFactory
Factory that constructs a fully configured OidcUserManager for Solid-OIDC authentication.
SolidProviderMetadata
Extends the standard OpenID Connect discovery document with Solid-specific metadata endpoints.
SolidScopes
Scope constants used in Solid-OIDC authentication requests.
WebIdUtils
Utility functions for working with Solid WebID URIs and deriving the associated identity provider (issuer).

Exceptions / Errors

SolidAuthDiscoveryException
Thrown when issuer/discovery-document resolution fails.
SolidAuthException
Base class for all solid_auth errors.
SolidAuthTokenException
Thrown when the OIDC token exchange or validation fails.