66
77Get the latest version of the ` docker-compose.yaml ` file:
88
9- And add secure Token(s) to ` API_TOKEN ` / ` API_TOKENS ` . See [ API_TOKEN (s)] ( #api-tokens )
9+ And add secure Token(s) to ` API__TOKEN ` / ` API__TOKENS ` . See [ API \_\_ TOKEN (s)] ( #api-tokens )
1010
1111> [ !IMPORTANT]
1212> This Documentation will be using ` sec-signal-api:8880 ` as the service host,
@@ -47,20 +47,20 @@ Secured Signal API provides 3 Ways to Authenticate
4747
4848### Bearer
4949
50- To Authenticate add ` Authorization: Bearer API_TOKEN ` to your request Headers
50+ To Authenticate add ` Authorization: Bearer API__TOKEN ` to your request Headers
5151
5252### Basic Auth
5353
5454To use Basic Auth as Authorization Method add ` Authorization: Basic BASE64_STRING ` to your Headers
5555
5656User is ` api ` (LOWERCASE)
5757
58- Formatting for ` BASE64_STRING ` = ` user:API_TOKEN ` .
58+ Formatting for ` BASE64_STRING ` = ` user:API__TOKEN ` .
5959
6060example:
6161
6262``` bash
63- echo " api:API_TOKEN " | base64
63+ echo " api:API__TOKEN " | base64
6464```
6565
6666=> ` YXBpOkFQSV9LRVkK `
@@ -73,7 +73,7 @@ in this case you can use **Query Auth**.
7373Here is a simple example:
7474
7575``` bash
76- curl -X POST http://sec-signal-api:8880/v2/send? @authorization=API_TOKEN
76+ curl -X POST http://sec-signal-api:8880/v2/send? @authorization=API__TOKEN
7777```
7878
7979Notice the ` @ ` infront of ` authorization ` . See [ Formatting] ( #format ) .
@@ -83,7 +83,7 @@ Notice the `@` infront of `authorization`. See [Formatting](#format).
8383To send a message to 1234567:
8484
8585``` bash
86- curl -X POST -H " Content-Type: application/json" -H " Authorization: Bearer API_TOKEN " -d ' {"message": "Hello World!", "recipients": ["1234567"]}' http://sec-signal-api:8880/v2/send
86+ curl -X POST -H " Content-Type: application/json" -H " Authorization: Bearer API__TOKEN " -d ' {"message": "Hello World!", "recipients": ["1234567"]}' http://sec-signal-api:8880/v2/send
8787```
8888
8989### Advanced
@@ -142,13 +142,13 @@ you have to add `@` in front of any KeyValue Pair assignment.
142142
143143### API Token(s)
144144
145- Both ` API_TOKEN ` and ` API_TOKENS ` support multiple Tokens seperated by a ` , ` ** Comma** .
145+ Both ` API__TOKEN ` and ` API__TOKENS ` support multiple Tokens seperated by a ` , ` ** Comma** .
146146During Authentication Secured Signal API will try to match the given Token against the list of Tokens inside of these Variables.
147147
148148``` yaml
149149environment :
150- API_TOKEN : " token1, token2, token3"
151- API_TOKENS : " token1, token2, token3"
150+ API__TOKEN : " token1, token2, token3"
151+ API__TOKENS : " token1, token2, token3"
152152` ` `
153153
154154> [!IMPORTANT]
0 commit comments