Repository navigation
AppConfig.user_store: opt an app into the per-user store whatever its access - #59
Merged
Merged
Conversation
… its access A public app with optional sign-in (its signed-in visitors keep their data on the server, everyone else keeps it in the browser) needs the auth plugin's per-user store, which today only protected:user apps get. `user_store = true` in app.toml says so. Like `access`, enlace carries it and does not interpret it; enlace_auth reads it (owner-granted data shares, enlace_auth ADR 0001).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
user_store: bool = FalsetoAppConfigand maps it fromapp.toml. A public app with optional sign-in can then get enlace_auth's per-user store for its signed-in visitors. enlace carries the flag and does not interpret it, as withaccess.First consumer: enlace_auth's owner-granted data shares (i2mint/enlace_auth ADR 0001, PR to follow).
Tests:
test_discover_user_store_flag(asgi + frontend-only apps; default off). Locallytest_cors.py::test_default_allows_any_origin_but_never_credentialsfails on main too (environment), untouched here.