nodeSolidServer / nodeSolidServer/node-solid-server
Rethink authentication configuration
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.8k
- Forks
- 308
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Right now, the server supports two different auth modes, confusingly named auth: "tls" and auth: "oidc", even though that doesn't cover exactly what they do. The main problem is that this one setting gives the impression that both methods are mutually exclusive, whereas they are not.
Discussions such as #667, #671, https://github.com/solid/solid-auth-client/issues/44, https://github.com/solid/solid/issues/138, https://github.com/solid/oidc-auth-manager/issues/20 show that there is a need for more clarity, and a better configuration option.
This issue tracks general progress and will act as a tracker for multiple sub-issues.
Here are the steps we need to take in my opinion:
- Have one single contract for the entire node-solid-server to track a) the WebID of the logged-in agent b) the method through which that agents has logged in
- Document the above contract
- Ensure that “ask for a client certificate on every resource (WebID-TLS)” can be enabled and disabled independently of other features
- Ensure that “act as an OIDC identity provider” can be enabled and disabled independently of other features
- Ensure that “log in with OIDC through username/password” can be enabled and disabled independently of other features
- Ensure that “log in with OIDC through client certificates (WebID-TLS)” can be enabled and disabled independently of other features
- Ensure that “accept bearer tokens” can be enabled and disabled independently of other features
- Examine whether we want to always translate successful logins into an Express cookie-based session
- Examine whether we want to allow turning on or off cookie-based sessions
- Create a configuration section that allows to enable and disable all of the above options independently
- Update the
initgenerator to create the right config - Remove the old
authconfig section
Feedback welcome.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Diskussionen #667, #671 und die verknüpften Authentifizierungs-Issues zu lesen, um das ungelöste Design zu verstehen. Verfolge anschließend die bestehende auth-Konfiguration und den init generator, die beide im Issue genannt sind. Die Aufgabe ist abgeschlossen, wenn der alte auth-Abschnitt durch dokumentierte, unabhängige Steuerungsmöglichkeiten für die aufgeführten Anmelde-, Token-, Zertifikats-, Identity-Provider- und Cookie-Session-Optionen ersetzt wurde.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- express, javascript, node.js
- Bereich
- authentication, backend
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 20/100