kypo-config.json 3.49 KB
Newer Older
Daniel Tovarňák's avatar
Daniel Tovarňák committed
1
2
3
4
5
6
7
8
9
{ 
  "roleMapping": {
    "uagAdmin": "ROLE_USER_AND_GROUP_ADMINISTRATOR",
    "trainingDesigner": "ROLE_TRAINING_DESIGNER",
    "trainingOrganizer": "ROLE_TRAINING_ORGANIZER",
    "trainingTrainee": "ROLE_TRAINING_TRAINEE",
    "sandboxDesigner": "ROLE_KYPO-SANDBOX-SERVICE_DESIGNER",
    "sandboxOrganizer": "ROLE_KYPO-SANDBOX-SERVICE_ORGANIZER"
  },
10
11
12
13
  "trainingAgendaConfig": {
    "pollingPeriod": 5000,
    "defaultPaginationSize": 10,
    "visualizationConfig": {
14
      "trainingBasePath": "{{ kypo_crp_training_service_url }}",
15
      "adaptiveBasePath": "{{ kypo_crp_adaptive_training_service_url }}",
16
      "elasticSearchBasePath": "{{ kypo_crp_elasticsearch_service_url }}"
17
18
    },
    "kypo2TopologyConfig": {
19
      "topologyRestUrl": "{{ kypo_crp_sandbox_service_url }}",
20
21
22
      "decoratorsRestUrl": "",
      "defaultDecoratorRefreshPeriodInSeconds": 3,
      "useRealTime": false,
23
24
25
26
27
28
      "useDecorators": false,
      "guacamoleConfig": {
        "url": "{{ kypo_crp_url }}{{ kypo_crp_guacamole_context_path }}",
        "username": "{{ kypo_crp_guacamole_user }}",
        "password": "{{ kypo_crp_guacamole_user_password }}"
      }
29
30
31
    }
  },
  "trainingApiConfig": {
32
33
    "trainingBasePath": "{{ kypo_crp_training_service_url }}",
    "adaptiveBasePath": "{{ kypo_crp_adaptive_training_service_url }}"
34
35
36
37
38
  },
  "sandboxAgendaConfig": {
    "pollingPeriod": 5000,
    "defaultPaginationSize": 10,
    "kypo2TopologyConfig": {
39
      "topologyRestUrl": "{{ kypo_crp_sandbox_service_url }}",
40
41
42
      "decoratorsRestUrl": "",
      "defaultDecoratorRefreshPeriodInSeconds": 3,
      "useRealTime": false,
43
44
45
46
47
48
      "useDecorators": false,
      "guacamoleConfig": {
        "url": "{{ kypo_crp_url }}{{ kypo_crp_guacamole_context_path }}",
        "username": "{{ kypo_crp_guacamole_user }}",
        "password": "{{ kypo_crp_guacamole_user_password }}"
      }
49
50
51
    }
  },
  "sandboxApiConfig": {
52
    "sandboxRestBasePath": "{{ kypo_crp_sandbox_service_url }}"
53
54
55
56
57
  },
  "userAndGroupAgendaConfig": {
    "defaultPaginationSize": 10
  },
  "userAndGroupApiConfig": {
58
    "userAndGroupRestBasePath": "{{ kypo_crp_uag_service_url }}"
59
60
61
62
  },
  "authConfig": {
    "guardMainPageRedirect": "home",
    "guardLoginPageRedirect": "login",
63
    "interceptorAllowedUrls": [
64
      "{{ kypo_crp_url }}"
65
    ],
66
    "authorizationStrategyConfig": {
67
      "authorizationUrl": "{{ kypo_crp_uag_service_authorization_strategy_url }}"
68
    },
69
    "providers": [
70
71
72
73
      {%- set kypo_crp_oidc_angular_processed = kypo_crp_oidc_providers | zip(
          kypo_crp_oidc_angular_processed_lists.logout_uris,
        ) -%}
      {% for kypo_crp_oidc_provider in kypo_crp_oidc_angular_processed -%}
74
      {
75
        "label": "{{ kypo_crp_oidc_provider[0].label }}",
76
77
78
        "textColor": "white",
        "backgroundColor": "#002776",
        "oidcConfig": {
Daniel Tovarňák's avatar
Daniel Tovarňák committed
79
          "requireHttps": true,
80
          "issuer": "{{ kypo_crp_oidc_provider[0].url }}",
81
82
          "clientId": "{{ kypo_crp_oidc_provider[0].client_id }}",
          "redirectUri": "{{ kypo_crp_url }}",
83
          "scope": "{{ kypo_crp_oidc_scopes | join(' ') }}",
84
85
86
          "logoutUrl": "{{ kypo_crp_oidc_provider[1] }}",
          "postLogoutRedirectUri": "{{ kypo_crp_oidc_post_logout_url }}",
          "silentRefreshRedirectUri": "{{ kypo_crp_oidc_silent_refresh_redirect_url }}",
87
88
89
90
          "clearHashAfterLogin": true,
          "strictDiscoveryDocumentValidation": false,
          "skipIssuerCheck": true,
          "oidc": true
91
        }
92
93
      }{{ "," if not loop.last else "" }}
    {% endfor -%}
94
    ]
95
  },
Juraj Paluba's avatar
Juraj Paluba committed
96
  "version": "v21.12.1"
97
}