solid_auth library

Support for flutter apps authenticating to a Solid server.

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

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

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

Authors: Anushka Vidanage

Properties

authManager ↔ AuthManager
Initialise authentication manager
getter/setter pair
currPlatform PlatformInfo
To get platform information
getter/setter pair

Functions

authenticate(Uri issuerUri, List<String> scopes, BuildContext context) Future<Map>
The authentication function
clientDynamicReg(String regEndpoint, List reidirUrlList, String authMethod, List scopes) Future<String>
Dynamically register the user in the POD server
fetchProfileData(String profUrl) Future<String>
Get public profile information from webId
genDpopToken(String endPointUrl, KeyPair rsaKeyPair, dynamic publicKeyJwk, String httpMethod) String
Generate dPoP token for the authentication
genRsaKeyPair() Future<Map>
Generate RSA key pair for the authentication
getIssuer(String textUrl) Future<String>
Get POD issuer URI
getIssuerUri(String profileRdfStr) String
Read public profile RDF file and get the issuer URI
logout(dynamic logoutUrl) Future<bool>