Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.
// Pointez pour afficher la description des attributs existants.
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug elections with Mock OAuth2",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"port": 2345,
"host": "127.0.0.1",
"program": "${workspaceFolder}/main.go",
"env": {
"REDIRECT_URL": "https://elections.127.0.0.1.nip.io:1443/OAuth2Callback",
"CLIENT_ID": "foo",
"CLIENT_SECRET": "bar",
"AUTH_URL": "http://localhost:8090/auth",
"TOKEN_URL": "http://localhost:8090/token",
"USERINFO_URL": "http://localhost:8090/admininfo",
"LOGOUT_URL": "/",
"ADMIN_GROUP": "ADMINS",
"CLIENT_GROUP": "CLIENTS",
"HOSTNAME": "elections.127.0.0.1.nip.io"
},
"args": ["-debug", "-https_port=1443"],
"showLog": true
},
{
"name": "Debug elections with Sign&Go",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"port": 2345,
"host": "127.0.0.1",
"program": "${workspaceFolder}/main.go",
"env": {
"REDIRECT_URL": "https://elections.127.0.0.1.nip.io:1443/OAuth2Callback",
"CLIENT_ID": "<GET ONE FROM YOUR IDP>",
"CLIENT_SECRET": "<GET ONE FROM YOUR IDP>",
"AUTH_URL": "https://connexion-rec.grandlyon.fr/IdPOAuth2/authorize/oidc-rec",
"TOKEN_URL": "https://connexion-rec.grandlyon.fr/IdPOAuth2/token/oidc-rec",
"USERINFO_URL": "https://connexion-rec.grandlyon.fr/IdPOAuth2/userinfo/oidc-rec",
"LOGOUT_URL": "https://connexion-rec.grandlyon.fr/auth/logout.jsp",
"ADMIN_GROUP": "GGD_ORG_DG-DEES-DINSI-DAAG_TOUS",
"CLIENT_GROUP": "GGD_ORG_DG-DEES-DINSI-DAAG_TOUS",
"HOSTNAME": "elections.127.0.0.1.nip.io",
},
"args": ["-debug", "-https_port=1443"],
"showLog": true
},
{
"name": "Debug elections client",
"type": "firefox",
"request": "launch",
"reAttach": true,
"url": "https://elections.127.0.0.1.nip.io:1443",
"webRoot": "${workspaceFolder}/web"
}
]
}