{"id":43020727,"url":"https://github.com/data-fair/sd-express","last_synced_at":"2026-01-31T06:30:52.234Z","repository":{"id":32407864,"uuid":"132512265","full_name":"data-fair/sd-express","owner":"data-fair","description":"Middleware and router helpers to write expressjs applications that depend on simple-directory for authentication.","archived":false,"fork":false,"pushed_at":"2025-05-28T08:05:29.000Z","size":2718,"stargazers_count":4,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-11T02:59:07.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/data-fair.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-05-07T20:20:38.000Z","updated_at":"2025-05-28T08:05:31.000Z","dependencies_parsed_at":"2023-07-17T20:25:43.569Z","dependency_job_id":"a231c7c2-803a-4c86-8342-2004c3bb8ce9","html_url":"https://github.com/data-fair/sd-express","commit_stats":{"total_commits":131,"total_committers":3,"mean_commits":"43.666666666666664","dds":0.05343511450381677,"last_synced_commit":"ada40451bde0feae1e037d2d62432d191bebdea3"},"previous_names":["koumoul-dev/simple-directory-client-express","koumoul-dev/sd-express"],"tags_count":62,"template":false,"template_full_name":null,"purl":"pkg:github/data-fair/sd-express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Fsd-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Fsd-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Fsd-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Fsd-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/data-fair","download_url":"https://codeload.github.com/data-fair/sd-express/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data-fair%2Fsd-express/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28931247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T04:05:25.756Z","status":"ssl_error","status_checked_at":"2026-01-31T04:02:35.005Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-31T06:30:51.237Z","updated_at":"2026-01-31T06:30:52.151Z","avatar_url":"https://github.com/data-fair.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Directory - Express\n\n[![Build Status](https://travis-ci.org/data-fair/sd-express.svg?branch=master)](https://travis-ci.org/data-fair/sd-express)\n[![Coverage Status](https://coveralls.io/repos/github/data-fair/sd-express/badge.svg?branch=master)](https://coveralls.io/github/data-fair/sd-express?branch=master)\n\nMiddleware and router helpers to write expressjs applications that depend on [simple-directory](https://data-fair.github.io/simple-directory/) for authentication.\n\n    npm i @data-fair/sd-express\n\nInitialization:\n\n```\nconst app = require('express')()\nconst session = require('@data-fair/sd-express')({directoryUrl: 'http://my-simple-directory'})\n\n// These routes are authenticated. In your router req.user will be defined with the content of the session.\napp.use('/api', session.auth, apiRouter)\n\n// These routes can all be used as callback redirections from authentication (thanks to session.loginCallback)\n// Also they will have req.user but without the cost of crypto verification and session prolongation (thanks to session.decode)\napp.use('/ui', session.loginCallback, session.decode, uiRouter)\n// The router exposes login, logout and ping routes to manage auth and session.\napp.use('/session', session.router)\n```\n\n**TODO**: Proper documentation of options and functionalities. For now [the code is the doc](https://github.com/data-fair/sd-express/blob/master/index.js).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdata-fair%2Fsd-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdata-fair%2Fsd-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdata-fair%2Fsd-express/lists"}