Commit Graph

315 Commits

Author SHA1 Message Date
Henry
d1d108b9b7 Add support for invite consumption via JSON 2021-03-29 15:53:30 +02:00
Henry
a67063ac32
Merge pull request #109 from ssb-ngi-pointer/integrate-stringer
integrate stringer dependency
2021-03-29 15:44:33 +02:00
Henry
c13741d4b8 integrate stringer dependency 2021-03-29 15:42:32 +02:00
Henry
88aef8374e
Merge pull request #108 from ssb-ngi-pointer/integrate-counterfeiter
integrate counterfeiter dependency
2021-03-29 15:37:47 +02:00
Henry
a62ad21165 integrate counterfeiter dependency 2021-03-29 15:33:58 +02:00
Henry
bd0180f7da
Merge pull request #106 from ssb-ngi-pointer/start-http-auth-msaddr
support multiserverAddress in start-http-auth URI
2021-03-29 12:29:30 +02:00
Henry
921626b829 move NetworkInfo to network package
... and implement MultiserverAddress() there.
2021-03-29 12:29:01 +02:00
Andre Staltz
52e8ad078d
add tests for start-http-auth msaddr 2021-03-29 12:56:30 +03:00
Andre Staltz
c6397c50d3
support multiserverAddress in start-http-auth URI 2021-03-29 12:34:38 +03:00
Henry
8821b99e27
Merge pull request #90 from ssb-ngi-pointer/sign-in-with-ssb
go side of sign-in with ssb
2021-03-26 18:30:30 +01:00
Henry
f96b916177 final fixes
* fix auth test
* fix notices test and parallelize
* cleanup unused input lookup
2021-03-26 18:27:14 +01:00
Andre Staltz
09fcd573b4 style all the sign-in pages 2021-03-26 18:16:26 +01:00
Henry
1170275816 rename ClientRequest to ClientPayload 2021-03-26 17:58:03 +01:00
Henry
544c05b290
Apply suggestions from code review
change variable declaration in login-events.js to const

Co-authored-by: André Staltz <andre@staltz.com>
2021-03-26 14:49:04 +01:00
Andre Staltz
1dd3f2891e style the logged-in indicator to include PubKey.Ref 2021-03-26 13:45:21 +01:00
Andre Staltz
c70fad79fe style the server-initiated ssb-http-auth template 2021-03-26 13:45:21 +01:00
Henry
57c6baf43d add ratelimiter middleware for HTTP and relax server timeouts
these timeouts affect server-sent events, too and interfer with sign-in with ssb.
2021-03-26 13:45:21 +01:00
Henry
7eeca8533d add tests for SSE-powered login
* add test for sse login
* add test for invalid solution
2021-03-26 13:45:21 +01:00
Henry
e9883a049b various fixes 2021-03-26 13:45:21 +01:00
Henry
3db376b549 some comments 2021-03-26 13:45:21 +01:00
Henry
7a03e5b479 unify login pages 2021-03-26 13:45:21 +01:00
Henry
3b092885fb cleanup 2021-03-26 13:45:21 +01:00
Henry
428ffb0bda finalize sse login
* redirect and save the cookie
* supress a warning and redirect immediatly
2021-03-26 13:45:21 +01:00
Henry
4325e0fb3d various fixes
* fill in sid and sc
* fix logout
* cascade member removal
* fix links
* trim suffix from signature
* fix /sse/login link
* fix sse links and filenames
* fix logout
* fix typos
* fix test compilation
* fix bridge test
* correct alias url test
* add some comments
* fix potentiall "can't send" deadlock on bridge

some documentation and license headers
2021-03-26 13:45:17 +01:00
Henry
36679e5c65 add muxrpc gossip.ping 2021-03-26 13:45:17 +01:00
Henry
9aa676e040 add ssb-uri for invite consumption 2021-03-26 13:36:48 +01:00
Henry
396961e5e8 implement bridge between muxrcp and http 2021-03-26 13:36:48 +01:00
Henry
afa6bee285 add server-sent events handler 2021-03-26 13:36:48 +01:00
Henry
a180c74c38 begin sign-in with ssb
* sketch session store
* use session store and unify authentication handling
* sketch muxrpc handlers
2021-03-26 13:36:42 +01:00
Henry
b5e2ea6572
Merge pull request #99 from ssb-ngi-pointer/insert-patch
Use name, not os.Args[1] when creating user
2021-03-25 08:44:44 +01:00
0f5e5a80de use name, not os.Args[1] when creating user 2021-03-24 10:22:11 +01:00
c65e4ec52b
Merge pull request #97 from ssb-ngi-pointer/update-insert-user
Update insert user
2021-03-24 10:13:30 +01:00
c81304a599 improve string referencing in script 2021-03-24 10:10:39 +01:00
553e5d464b fix formatting, improve output message on member add 2021-03-24 10:09:35 +01:00
bc88a56c38 update readme instructions 2021-03-23 18:03:13 +01:00
f19841a8c8 rewrite insert-user, use flags for providing all options 2021-03-23 18:00:08 +01:00
Henry
33c708df5e
Merge pull request #95 from ssb-ngi-pointer/add-js-test-for-aliases
add JS test for alias register and revoke
2021-03-23 17:30:32 +01:00
Henry
abaff98f77 move aliases signing to internal 2021-03-23 17:13:06 +01:00
Henry
0065312db1 change muxrpc room.registerAlias to return the resolve URL 2021-03-23 16:50:25 +01:00
Henry
6e6a8e4910 Update muxrpc/test/nodejs/testscripts/modern_aliases.js
Co-authored-by: André Staltz <andre@staltz.com>
2021-03-23 11:26:33 +01:00
Andre Staltz
8a788f6ee6 update ssb-room-client and other deps 2021-03-23 11:26:33 +01:00
Henry
9bedf5d4f7 add JS test for alias register and revoke 2021-03-23 11:26:33 +01:00
Henry
0b7b22e11f
Merge pull request #85 from ssb-ngi-pointer/new-js-client
Use new ssb-room client module
2021-03-23 11:25:46 +01:00
585554b456 continue refactoring, jiggle timings a bit 2021-03-23 08:19:01 +01:00
f15a5b2f11 refactor opening tunnel test, cleanup test comments 2021-03-23 08:19:01 +01:00
5b8b1af96a wip refactor nodejs muxrpc opening tunnel test 2021-03-23 08:19:01 +01:00
26e9787c3a clean up basic client test, refactor common logic 2021-03-23 08:19:01 +01:00
713de8f489 rename to roomrpc, fix tunneled typo 2021-03-23 08:19:01 +01:00
ee61749918 add tap-spec for better output 2021-03-23 08:18:57 +01:00
Henry
3cea539128 overhauling a bunch of stuff 2021-03-23 08:14:49 +01:00