Skip to content
Snippets Groups Projects
launch.json 2.27 KiB
Newer Older
  • Learn to ignore specific revisions
  • Alexis Poyen's avatar
    Alexis Poyen committed
    {
      // 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"
        }
      ]
    }