Skip to content

feat(domain): allow logging in with a Pod on a loopback host over http - #976

Merged
ixuz merged 2 commits into
mainfrom
loopback-login
Nov 23, 2026
Merged

ixuz merged 2 commits into
mainfrom
loopback-login

Conversation

@ixuz

@ixuz ixuz commented Nov 23, 2026

Copy link
Copy Markdown
Member

What and why

Trying a Solid app against a Pod run locally, such as Community Solid Server at http://localhost:3000/, is a common step before using a real Pod. Solid Memo refused that login because the address wasn't https. Requests to a loopback host never leave the device, and browsers count these hosts as secure, so plain http there exposes no token or code on the network.

Plain http:// is now accepted on loopback hosts only, at any port:

  • localhost, and any name under .localhost
  • an address in 127.0.0.0/8, such as 127.0.0.1
  • [::1]

This applies to a typed WebID, a chosen identity provider, the provider a WebID's profile names, and the check made on every login and session restore. Every other host still needs https.

A profile's http provider is accepted only when the WebID is on a loopback host too. Otherwise a profile on the web could send the browser to a server on the learner's own device.

  • solid-memo-client (the second sign-in client) now accepts all of 127.0.0.0/8 too. It only accepted 127.0.0.1, so a local Pod at another address in that block would have passed the app's check and then failed at sign-in.
  • The "A WebID must start with https://" message mentions the exception, in all six languages.
  • docs/onboarding.md and docs/authentication.md describe the exception.
  • The journey Pod is at 127.0.0.1, so the two journeys that check an http WebID is refused now use one on another host (http://pod.example/…).

Closes: #975

ixuz added 2 commits November 23, 2026 08:42
The client sent tokens over plain http, and let oauth4webapi talk to a
provider over it, only for 127.0.0.1 among the IPv4 loopback addresses.
The whole 127.0.0.0/8 block never leaves the machine, and the login by
WebID is about to take it as loopback too, so a local pod at another
address in it would pass the app's check and then fail in the client.

Refs: #975
Trying a Solid app against a Pod run locally, such as Community Solid
Server at http://localhost:3000/, is a common step before using a real
Pod, and the login refused it for not being https. Requests to a
loopback host never leave the device, and browsers count these hosts as
secure, so plain http there exposes no token or code on the network.

A WebID, a chosen issuer and the issuer a profile names now pass over
http on localhost, a name under .localhost, 127.0.0.0/8 or [::1], at any
port; everything else still needs https. A profile's http issuer counts
only for a WebID on a loopback host too, so a profile on the web can't
send the browser to a server on the learner's device.

The journeys that type an http WebID to see it refused now use one on
another machine, since their Pod is at 127.0.0.1.

Closes: #975
@ixuz ixuz added enhancement New feature or request interop i18n labels Nov 23, 2026
@ixuz
ixuz enabled auto-merge November 23, 2026 08:10
@ixuz
ixuz added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit a19c287 Nov 23, 2026
99 of 106 checks passed
@ixuz
ixuz deleted the loopback-login branch November 23, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request i18n interop

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow logging in with http://

1 participant