From a0c72f5b94e7eab50c997bfa9d2e8f2c04067bb0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mike=20Schw=C3=B6rer?=
- You can at any time generate a new key
in the app and invalidate the old one.
+ You can at any time generate new key
s in the app with different permissions.
There is also a web interface for this API to manually send notifications to your phone or to test your setup. @@ -90,7 +90,7 @@
+ A user account can have multiple keys with different permissions. + A Key has one or more permissions assigned: +
+ +Permission | +Identifier | +Explanation | +
---|---|---|
ADMIN | +A |
+ Allows modification of the current user, creating/editing keys, channels, subsriptions, etc. and includes all other permissions | +
CHANNEL READ | +CR |
+ Allows reading and listing messages | +
CHANNEL SEND | +CS |
+ Allows sending messages | +
USER READ | +UR |
+ Allows querying the current user | +
+ Keys can also be scoped to specific channels. + A Key can either have access to all channels the user has access to, or only to a subset. + The permitted channels can either be channels of the user or foreign channels with an active subscription. +
+ +
+ A common use case is to create a key with only the CS
(Channel Send) permission and only a single channel.
+ This key can then be used to send messages without having full access to the account.
+
- Sometimes your script can run in an environment with an unstable connection and you want to implement an automatic re-try mechanism to send a message again if the last try failed due to bad connectivity. + Sometimes your script can run in an environment with an unstable connection, and you want to implement an automatic re-try mechanism to send a message again if the last try failed due to bad connectivity.
To ensure that a message is only send once you can generate a unique id for your message (I would recommend a simple uuidgen
or head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32
).
diff --git a/scnserver/website/css/style.css b/scnserver/website/css/style.css
index 4e6d1d8..1ce010e 100644
--- a/scnserver/website/css/style.css
+++ b/scnserver/website/css/style.css
@@ -270,16 +270,19 @@ a.card:hover
table.scode_table {
max-height: none;
- overflow: hidden;
+ overflow: hidden !important;
}
+table.scode_table td:nth-child(2),
+table.scode_table th:nth-child(2){flex-grow: 3;}
-table.scode_table td:nth-child(2) {
- flex-grow: 3;
-}
-
-table.scode_table th:nth-child(2) {
- flex-grow: 3;
+table.permlist_table {
+ max-height: none;
+ overflow: hidden !important;
}
+table.permlist_table td:nth-child(2),
+table.permlist_table th:nth-child(2) {flex-grow: 0; min-width:80px;}
+table.permlist_table td:nth-child(3),
+table.permlist_table th:nth-child(3) {flex-grow: 3;}
#mainpnl h2 {
margin-top: 1.75rem;