Skip to content

tdiprima/Solid-Sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solid-Sentry

This project demonstrates a basic implementation of Solid OIDC for secure login and profile access in a web application.

Overview

  1. Solid OIDC Integration: The app showcases Solid OpenID Connect (OIDC) integration using app.js and index.html to handle login and fetch user profiles.
  2. Login and Session Management: A login button triggers the OIDC flow with a designated issuer (https://solidcommunity.net). Post-login, app.js processes the session and, if valid, retrieves basic profile data, such as the user's name.
  3. Proof of Concept: This setup serves as a foundational example of authenticating and accessing user data using Solid's framework.

Setup and Usage

  1. Start the Solid Community Server (optional for local development):

    npx @solid/community-server -p 3003 #-c @css:config/file.json
  2. Install Dependencies:

    npm install @inrupt/solid-client-authn-browser @inrupt/solid-client
    • @inrupt/solid-client-authn-browser: A library for handling authentication in browser-based applications using Solid, helping users log in to Solid pods and handle session management.
    • @inrupt/solid-client: A library for interacting with Solid pods, allowing you to read from and write to pod data, manage permissions, and more.
  3. Run the App:

    npm start

The app will be accessible on http://localhost:5173/ with OIDC functionality ready for testing.


Releases

No releases published

Packages

No packages published