cblgh
346ba14ec9
test connection establishment for non-members in restricted rooms
2021-04-26 09:29:22 +02:00
cblgh
72e97dd374
refactor out unused reference
2021-04-26 09:29:22 +02:00
cblgh
f0b4c7a534
test that alias resolving is turned off for restricted rooms
2021-04-26 09:29:22 +02:00
cblgh
ab06233f28
test invite creation under community & restricted for admin, mod & member
...
Update web/handlers/admin/setup_test.go
Co-authored-by: Henry <111202+cryptix@users.noreply.github.com>
2021-04-26 09:29:17 +02:00
cblgh
80686dec26
cherrypick: ts.User is now pointer
2021-04-23 13:25:13 +02:00
Henry
57c1375e54
fix missing context
2021-04-23 11:25:35 +02:00
Henry
e6ca0ed74b
remove unused argument
2021-04-23 08:56:01 +02:00
Henry
8811127eae
disable debugging logger
2021-04-23 08:56:01 +02:00
User Cryptix
fc5d3e440e
add json response for invite facade ( fixes #188 )
2021-04-23 08:55:50 +02:00
Henry
c991e0831f
add a test
2021-04-23 08:55:37 +02:00
Henry
9b4804b98e
dont allow upercase chars in aliases ( fix #192 )
2021-04-23 08:55:37 +02:00
Andre Staltz
2f0afe8f33
improve sign-in with ssb JS for Firefox
2021-04-23 08:55:26 +02:00
Andre Staltz
3beb656b9c
change join-room to claim-http-invite
2021-04-23 08:54:29 +02:00
Alexander Cobleigh
5e9dc63153
Merge pull request #179 from ssb-ngi-pointer/disable-ui-if-unelevated
...
disable ui if user is unelevated
2021-04-23 08:50:58 +02:00
cblgh
cec5f93fb6
tests for restricted UI behavior
...
* add tests for privacy mode settings
* test privacy mode settings for member role
* test default language settings
* test denied keys interface for each role
* test adding new member interface depending on role
* test member details depending on role
* test invite button is disabled pending on user role
2021-04-23 08:34:27 +02:00
cblgh
2c9fdcb98e
update HTML UI to reflect role access restrictions
...
* disable ui if user is unelevated
* disable revoke button if unelevated and not own invite
* improve styling of disabled elements
* remove revoke if alias not made my current user
2021-04-23 08:33:20 +02:00
Henry
5dba245c16
Merge pull request #184 from ssb-ngi-pointer/fix-183
...
rename address field in alias JSON resolver
2021-04-22 08:55:37 +02:00
Andre Staltz
34eef5fb9b
rename address field in alias JSON resolver
2021-04-21 19:46:45 +03:00
Henry
e355036efa
Merge pull request #182 from ssb-ngi-pointer/fix-alias-json-endpoint
...
Fix nginx.cfg for alias resolve when using JSON
2021-04-21 18:22:00 +02:00
Henry
02303fcd7d
Fix nginx.cfg for alias resolve when using JSON
...
fixes #181
The location/proxy_pass rule stripped the rest of the request URL.
This makes sure the url arguments are passed on to backend correctly.
See also: https://dev.to/danielkun/nginx-everything-about-proxypass-2ona
2021-04-21 17:27:35 +02:00
Henry
36cd8fc190
Merge pull request #175 from ssb-ngi-pointer/remove-stale-peers
...
remove peers from the room when the muxrpc sessions ends
2021-04-21 12:19:48 +02:00
Henry
984f3dfc87
remove peers from the room when the muxrpc sessions ends
...
fixes #173
2021-04-21 11:56:33 +02:00
Henry
4c875eecd7
Merge pull request #174 from ssb-ngi-pointer/fix-leaky-connect-error
...
don't leak internal details to callers
2021-04-21 11:54:22 +02:00
Henry
f68bd7d46f
don't leak internal details to callers
...
fixes #154
2021-04-21 11:51:00 +02:00
Henry
c28a3a59ef
Merge pull request #171 from ssb-ngi-pointer/add-endpoint-tests
...
Add tunnel.endpoint tests and bugfix
2021-04-21 11:49:43 +02:00
Henry
13d9ba41c4
update some comments
2021-04-21 09:44:44 +02:00
Henry
6aaee070c6
fix test assumption
2021-04-21 08:28:36 +02:00
Henry
38148aadcb
update muxrpc branch
2021-04-20 18:17:56 +02:00
Henry
a965333f90
add assertions to the new test
2021-04-20 18:17:56 +02:00
Henry
9cd7aa0b5a
introduce tunnel.endpoint tests
2021-04-20 18:17:56 +02:00
Henry
51ad16ccd5
refactor testSession setup
2021-04-20 18:17:56 +02:00
Henry
a872ddf2c0
Merge pull request #141 from ssb-ngi-pointer/fix-websocket
...
Fix websocket
2021-04-20 18:14:44 +02:00
Henry
1a6d027292
Apply suggestions from code review
...
Co-authored-by: Alexander Cobleigh <cblgh@cblgh.org>
Co-authored-by: André Staltz <andre@staltz.com>
2021-04-20 18:10:28 +02:00
Henry
bcc2570a50
add nginx config ( closes #117 )
2021-04-20 18:10:28 +02:00
Henry
940cd2b3d1
Fix ssb-ws connections
...
The landing path (/) can now also be used as a websocket endpoint.
This enables use of the room server with ssb-browser-demo and similar
applications that can't use TCP connections.
also pin WIP muxrpc branch (fix-stupid-timeout)
2021-04-20 18:10:26 +02:00
Henry
3afe9b3659
fix origin information of tunnel.connect
...
also cleanup logging by removing output to stdout
2021-04-20 18:09:40 +02:00
Henry
545187dfe5
dont remove peers on a whim
...
it could be they error on the call for a valid reason.
TODO:
* we need to make an IsConnectionError(err)
* maybe level up the gossip.ping code for liveliness.
2021-04-20 17:18:30 +02:00
Henry
b939ca0873
tweak gossip.ping code
2021-04-20 17:18:27 +02:00
Henry
1b6077e49d
sort memberList
...
for better dedup
2021-04-20 17:15:21 +02:00
Alexander Cobleigh
2007c73295
Merge pull request #143 from ssb-ngi-pointer/language-picking
...
Add language picker
2021-04-20 11:51:51 +02:00
cblgh
16985bba8d
rewrite list_languages function to use html/template
2021-04-20 11:49:24 +02:00
cblgh
c6077337d1
use more robust identifier for test
2021-04-20 10:36:40 +02:00
Alexander Cobleigh
a5f7701437
Apply suggestions from code review
...
Co-authored-by: Henry <111202+cryptix@users.noreply.github.com>
use eh.Handle
2021-04-20 10:36:34 +02:00
cblgh
0574c9a235
test language picking
2021-04-20 09:22:53 +02:00
cblgh
8d1f790f57
add flag for toggling usage of alias subdomains
...
related to #160 , requested by cryptix
2021-04-20 09:22:53 +02:00
cblgh
1c5c0b9867
make tests more robust when validating specific csrf token
2021-04-20 09:22:53 +02:00
cblgh
7759e8f898
add de translation, use []TagTranslation, and sort
...
to make sure the list of languages is sorted, we now use a slice of
TagTranslation{Tag: string, Translation: string} structs, sorted
by `TagTranslation.Tag`.
2021-04-20 09:22:53 +02:00
cblgh
b9fe27b0ca
fix inconsistent cookies, set csrf cookie path
...
while working on the /set-language route, i noticed that i was getting a
csrf error for all /admin views when setting the language, while it
worked well on non-admin routes.
the issue, it turned out, was that we needed to configure gorilla's csrf
feature to set all cookies on the same route. when unconfigured, the
set cookies will only be set for the path they are being set at.
see more in the gorilla.csrf documentation (in particular the csrf.Path
option): https://pkg.go.dev/github.com/gorilla/csrf?utm_source=godoc#Path
2021-04-20 09:22:53 +02:00
cblgh
c97b7d44c3
add default language admin ui functionality
2021-04-20 09:22:49 +02:00
cblgh
e941e10f24
bump ssb-room-client & package-lock
2021-04-20 09:12:15 +02:00