1+ {
2+ "apps" : [
3+ {% for app in apps % }
4+ {
5+ "id" : " {{ app['id'] }}" ,
6+ "name" : " {{ app['name'] }}" ,
7+ "label" : " {{ app['label'] }}" ,
8+ "status" : " {{ app['status'] }}" ,
9+ "lastUpdated" : " {{ app['lastUpdated'] }}" ,
10+ "created" : " {{ app['created'] }}" ,
11+ "accessibility" : {
12+ "selfService" : {{ app['accessibility']['selfService'] | tojson }},
13+ "errorRedirectUrl" : {{ app['accessibility']['errorRedirectUrl'] | tojson }},
14+ "loginRedirectUrl" : {{ app['accessibility']['loginRedirectUrl'] | tojson }}
15+ },
16+ "visibility" : {
17+ "autoSubmitToolbar" : {{ app['visibility']['autoSubmitToolbar'] | tojson }},
18+ "hide" : {
19+ "iOS" : {{ app['visibility']['hide']['iOS'] | tojson }},
20+ "web" : {{ app['visibility']['hide']['web'] | tojson }}
21+ },
22+ "appLinks" : {{ app['visibility']['appLinks'] | tojson }}
23+ },
24+ "features" : {{ app['features'] | tojson }},
25+ "signOnMode" : " {{ app['signOnMode'] }}" ,
26+ "credentials" : {
27+ "userNameTemplate" : {
28+ "template" : " {{ app['credentials']['userNameTemplate']['template'] }}" ,
29+ "type" : " {{ app['credentials']['userNameTemplate']['type'] }}"
30+ },
31+ {% if app['credentials']['signing'] % }
32+ "signing" : {
33+ "kid" : " {{ app['credentials']['signing']['kid'] }}"
34+ },
35+ {% endif % }
36+ {% if app['credentials']['oauthClient'] % }
37+ "oauthClient" : {
38+ "autoKeyRotation" : {{ app['credentials']['oauthClient']['autoKeyRotation'] | tojson }},
39+ "client_id" : " {{ app['credentials']['oauthClient']['client_id'] }}" ,
40+ "token_endpoint_auth_method" : " {{ app['credentials']['oauthClient']['token_endpoint_auth_method'] }}"
41+ }
42+ {% endif % }
43+ },
44+ "settings" : {
45+ "app" : {{ app['settings']['app'] | tojson }},
46+ "notifications" : {
47+ "vpn" : {
48+ "network" : {
49+ "connection" : " {{ app['settings']['notifications']['vpn']['network']['connection'] }}"
50+ },
51+ "message" : {{ app['settings']['notifications']['vpn']['message'] | tojson }},
52+ "helpUrl" : {{ app['settings']['notifications']['vpn']['helpUrl'] | tojson }}
53+ }
54+ },
55+ {% if app['settings']['oauthClient'] % }
56+ "oauthClient" : {
57+ "client_uri" : {{ app['settings']['oauthClient']['client_uri'] | tojson }},
58+ "logo_uri" : {{ app['settings']['oauthClient']['logo_uri'] | tojson }},
59+ "redirect_uris" : {{ app['settings']['oauthClient']['redirect_uris'] | tojson }},
60+ "response_types" : {{ app['settings']['oauthClient']['response_types'] | tojson }},
61+ "grant_types" : {{ app['settings']['oauthClient']['grant_types'] | tojson }},
62+ "application_type" : " {{ app['settings']['oauthClient']['application_type'] }}" ,
63+ "consent_method" : " {{ app['settings']['oauthClient']['consent_method'] }}" ,
64+ "issuer_mode" : " {{ app['settings']['oauthClient']['issuer_mode'] }}" ,
65+ "idp_initiated_login" : {
66+ "mode" : " {{ app['settings']['oauthClient']['idp_initiated_login']['mode'] }}" ,
67+ "default_scope" : {{ app['settings']['oauthClient']['idp_initiated_login']['default_scope'] | tojson }}
68+ },
69+ "wildcard_redirect" : " {{ app['settings']['oauthClient']['wildcard_redirect'] }}"
70+ }
71+ {% endif % }
72+ },
73+ "_links" : {
74+ "uploadLogo" : {
75+ "href" : " {{ app['_links']['uploadLogo']['href'] }}" ,
76+ "hints" : {
77+ "allow" : {{ app['_links']['uploadLogo']['hints']['allow'] | tojson }}
78+ }
79+ },
80+ "appLinks" : [
81+ {% for link in app['_links']['appLinks'] % }
82+ {
83+ "name" : " {{ link['name'] }}" ,
84+ "href" : " {{ link['href'] }}" ,
85+ "type" : " {{ link['type'] }}"
86+ }{% if not loop.last % },{% endif % }
87+ {% endfor % }
88+ ],
89+ "groups" : {
90+ "href" : " {{ app['_links']['groups']['href'] }}"
91+ },
92+ "logo" : [
93+ {% for logo in app['_links']['logo'] % }
94+ {
95+ "name" : " {{ logo['name'] }}" ,
96+ "href" : " {{ logo['href'] }}" ,
97+ "type" : " {{ logo['type'] }}"
98+ }{% if not loop.last % },{% endif % }
99+ {% endfor % }
100+ ],
101+ "users" : {
102+ "href" : " {{ app['_links']['users']['href'] }}"
103+ },
104+ {% if app['_links']['deactivate'] % }
105+ "deactivate" : {
106+ "href" : " {{ app['_links']['deactivate']['href'] }}"
107+ }
108+ {% endif % }
109+ }
110+ }{% if not loop.last % },{% endif % }
111+ {% endfor % }
112+ ]
113+ }
114+
0 commit comments