You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Exchange a wallet-signed challenge for a short-lived session token covering all of the wallet's subscriptions",
29
+
"consumes": [
30
+
"application/json"
31
+
],
32
+
"produces": [
33
+
"application/json"
34
+
],
35
+
"summary": "AuthSession",
36
+
"parameters": [
37
+
{
38
+
"description": "Session Request",
39
+
"name": "SessionRequest",
40
+
"in": "body",
41
+
"required": true,
42
+
"schema": {
43
+
"$ref": "#/definitions/api.SessionRequest"
44
+
}
45
+
}
46
+
],
47
+
"responses": {
48
+
"200": {
49
+
"description": "Session token",
50
+
"schema": {
51
+
"$ref": "#/definitions/api.SessionResponse"
52
+
}
53
+
},
54
+
"400": {
55
+
"description": "Bad Request",
56
+
"schema": {
57
+
"$ref": "#/definitions/api.ErrorResponse"
58
+
}
59
+
},
60
+
"401": {
61
+
"description": "Unauthorized",
62
+
"schema": {
63
+
"$ref": "#/definitions/api.ErrorResponse"
64
+
}
65
+
},
66
+
"403": {
67
+
"description": "Forbidden (no subscriptions for wallet)",
68
+
"schema": {
69
+
"$ref": "#/definitions/api.ErrorResponse"
70
+
}
71
+
},
72
+
"405": {
73
+
"description": "Method Not Allowed",
74
+
"schema": {
75
+
"type": "string"
76
+
}
77
+
},
78
+
"500": {
79
+
"description": "Server Error",
80
+
"schema": {
81
+
"$ref": "#/definitions/api.ErrorResponse"
82
+
}
83
+
}
84
+
}
85
+
}
86
+
},
26
87
"/api/client/available": {
27
88
"post": {
28
89
"description": "Check if a client profile is available",
@@ -123,7 +184,12 @@ const docTemplate = `{
123
184
},
124
185
"/api/client/profile": {
125
186
"post": {
126
-
"description": "Fetch a client VPN profile given a COSE payload via signed S3 link",
187
+
"security": [
188
+
{
189
+
"BearerAuth": []
190
+
}
191
+
],
192
+
"description": "Fetch a client VPN profile via a signed S3 link; authenticate with a session Bearer token and provide the subscription id in the body",
127
193
"consumes": [
128
194
"application/json"
129
195
],
@@ -169,6 +235,11 @@ const docTemplate = `{
169
235
},
170
236
"/api/client/wg-devices": {
171
237
"post": {
238
+
"security": [
239
+
{
240
+
"BearerAuth": []
241
+
}
242
+
],
172
243
"description": "List all WireGuard devices registered for a client",
173
244
"consumes": [
174
245
"application/json"
@@ -224,6 +295,11 @@ const docTemplate = `{
224
295
},
225
296
"/api/client/wg-peer": {
226
297
"delete": {
298
+
"security": [
299
+
{
300
+
"BearerAuth": []
301
+
}
302
+
],
227
303
"description": "Remove a WireGuard device registration",
228
304
"consumes": [
229
305
"application/json"
@@ -291,6 +367,11 @@ const docTemplate = `{
291
367
},
292
368
"/api/client/wg-profile": {
293
369
"post": {
370
+
"security": [
371
+
{
372
+
"BearerAuth": []
373
+
}
374
+
],
294
375
"description": "Get a WireGuard configuration profile for a registered device",
295
376
"consumes": [
296
377
"application/json"
@@ -359,6 +440,11 @@ const docTemplate = `{
359
440
},
360
441
"/api/client/wg-register": {
361
442
"post": {
443
+
"security": [
444
+
{
445
+
"BearerAuth": []
446
+
}
447
+
],
362
448
"description": "Register a new WireGuard device for a client",
363
449
"consumes": [
364
450
"application/json"
@@ -690,12 +776,6 @@ const docTemplate = `{
690
776
"properties": {
691
777
"id": {
692
778
"type": "string"
693
-
},
694
-
"key": {
695
-
"type": "string"
696
-
},
697
-
"signature": {
698
-
"type": "string"
699
779
}
700
780
}
701
781
},
@@ -738,6 +818,32 @@ const docTemplate = `{
738
818
}
739
819
}
740
820
},
821
+
"api.SessionRequest": {
822
+
"type": "object",
823
+
"required": [
824
+
"key",
825
+
"signature"
826
+
],
827
+
"properties": {
828
+
"key": {
829
+
"type": "string"
830
+
},
831
+
"signature": {
832
+
"type": "string"
833
+
}
834
+
}
835
+
},
836
+
"api.SessionResponse": {
837
+
"type": "object",
838
+
"properties": {
839
+
"expires_at": {
840
+
"type": "integer"
841
+
},
842
+
"token": {
843
+
"type": "string"
844
+
}
845
+
}
846
+
},
741
847
"api.TxRenewRequest": {
742
848
"type": "object",
743
849
"properties": {
@@ -825,12 +931,6 @@ const docTemplate = `{
825
931
"client_id": {
826
932
"type": "string"
827
933
},
828
-
"key": {
829
-
"type": "string"
830
-
},
831
-
"signature": {
832
-
"type": "string"
833
-
},
834
934
"wg_pubkey": {
835
935
"type": "string"
836
936
}
@@ -866,12 +966,6 @@ const docTemplate = `{
866
966
"properties": {
867
967
"client_id": {
868
968
"type": "string"
869
-
},
870
-
"key": {
871
-
"type": "string"
872
-
},
873
-
"signature": {
874
-
"type": "string"
875
969
}
876
970
}
877
971
},
@@ -895,12 +989,6 @@ const docTemplate = `{
895
989
"client_id": {
896
990
"type": "string"
897
991
},
898
-
"key": {
899
-
"type": "string"
900
-
},
901
-
"signature": {
902
-
"type": "string"
903
-
},
904
992
"wg_pubkey": {
905
993
"type": "string"
906
994
}
@@ -912,12 +1000,6 @@ const docTemplate = `{
912
1000
"client_id": {
913
1001
"type": "string"
914
1002
},
915
-
"key": {
916
-
"type": "string"
917
-
},
918
-
"signature": {
919
-
"type": "string"
920
-
},
921
1003
"wg_pubkey": {
922
1004
"type": "string"
923
1005
}
@@ -940,6 +1022,14 @@ const docTemplate = `{
940
1022
}
941
1023
}
942
1024
}
1025
+
},
1026
+
"securityDefinitions": {
1027
+
"BearerAuth": {
1028
+
"description": "Session token from POST /api/auth/session, sent as \"Bearer \u003ctoken\u003e\".",
0 commit comments