Repository navigation
A site's check for a person is shown to the person, through the server - #1
Merged
Merged
Conversation
A plugin's site may put a check before its pages that only a person in a browser can pass. A plugin says so with StageException.Check (a PersonCheck: the page and the cookie that says it was passed), and never answers it. On the Browser page the PC opens that page as it is in a WebView2 window with a profile of its own, reached through a SOCKS forward over ssh (ServerTunnel), so the site sees the server's address. When the cookie is there the window closes, the agent hears of it (AgentCommand.Passed), plugins that are an ICheckedPlugin are told, and the read is asked once more. The tunnel is the one run of ssh that forwards anything, on loopback, for as long as the window is open. The plugin contract's number stays: nothing built against it breaks. The window and the tunnel have not been run against a server yet.
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.
A plugin's site may put a check before its pages that only a person in a browser can pass (a picture of characters to type, say). A plugin now says so, and never answers it.
What it does
PluginApi.Versionstays 1):StageException.Checkcarries aPersonCheck(the page, and the cookie that says it was passed); a plugin that is anICheckedPluginhears of a pass.AgentCommand.Passedbrings the pass back to the plugins.ServerTunnel), so the site sees the server's address. When the cookie is there the window closes and the read is asked once more. One window at a time; a check given up on is left alone for 30 s.Tested