feat: Sprint 2 — WordPress plugin (auth/api/site-info/admin) + web SiteConnector
Mirror to GitHub / mirror (push) Canceled after 0s
Mirror to GitHub / mirror (push) Canceled after 0s
- plugin: Wursor_Auth (token hashing, HMAC, scoped tokens), Wursor_API (REST + auth), Wursor_Site_Info (builder/capabilities/preflight), Wursor_Admin - plugin: test-auth.php (10 auth tests, run in a WP+PHP env) - web: SiteConnector pairing UI (code + poll + states) - api: PluginClient signs full REST route (matches WP get_route) - 92 unit tests green
This commit is contained in:
@@ -43,7 +43,7 @@ describe('PluginClient', () => {
|
||||
|
||||
const [, init] = fetchMock.mock.calls[0] as [string, { headers: Record<string, string> }];
|
||||
const ts = init.headers['X-Wursor-Timestamp'];
|
||||
expect(init.headers['X-Wursor-Signature']).toBe(expectedSignature('h-secret', ts, 'POST', '/files', '{"a":1}'));
|
||||
expect(init.headers['X-Wursor-Signature']).toBe(expectedSignature('h-secret', ts, 'POST', '/wursor/v1/files', '{"a":1}'));
|
||||
});
|
||||
|
||||
it('maps a 401 to Authentication failed', async () => {
|
||||
|
||||
Reference in New Issue
Block a user