feat: opt-in OIDC browser open, atomic page creation, and conflict recovery
- Default pages login --oidc to not auto-open a browser and replace --no-browser with --with-open-browser - Add atomic new Path/Page creation (PUT /_/api/v1/pages/path:... with If-None-Match: *) in pages edit with confirmation and und warning - Add interactive 409/412 conflict resolution and pages recover (--list, --edit, --discard) - Update tests, docs (README.md, DISTRIBUTION.md, docs/client-contract.md, docs/neomutt.md), and macOS CI unittest list
This commit is contained in:
1 parent
bee03094f3
commit
9b685b72da
9 files changed
+907
-75
No files matched your search
+1
-1
@@ -142,7 +142,7 @@ class TLSTests(unittest.TestCase):
|
||||
def test_oidc_client_uses_explicit_tls_context(self):
|
||||
client=Client(self.base,insecure=True)
|
||||
with patch.object(m['webbrowser'],'open') as browser,contextlib.redirect_stdout(io.StringIO()) as out:
|
||||
_,username=client.login_oidc(no_browser=True,sleep=lambda _:None)
|
||||
_,username=client.login_oidc(sleep=lambda _:None)
|
||||
browser.assert_not_called()
|
||||
self.assertEqual(username,'synthetic')
|
||||
self.assertEqual(client.token,self.token)
|
||||
|
||||
Reference in new issue
Block a user