CTrees.pm 10.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
# This file contains the description of special subtrees of the manager
# interface.
# You can only use the following keys:
#  * title: the name of the node
#  * nodes: the subnodes of the node
#  * group: grouped subnodes (see RSAKey form for example)
#  * form: only for nodes, the form to display when selected
#
# Conf parameters are just strings in the `nodes` array
#
11
# All other ideas have to be set in Manager/Build/Attributes.pm !
12

Xavier Guimard's avatar
Xavier Guimard committed
13
# DON'T FORGET TO RUN "make json" AFTER EACH CHANGE
14

15
package Lemonldap::NG::Manager::Build::CTrees;
16

Xavier Guimard's avatar
Xavier Guimard committed
17 18
our $VERSION = '2.0.0';

19 20 21 22 23 24 25 26 27
sub cTrees {
    return {
        virtualHost => [
            'locationRules',
            'exportedHeaders',
            'post',
            {
                title => 'vhostOptions',
                help  => 'configvhost.html#options',
Christophe Maudoux's avatar
Christophe Maudoux committed
28
                form  => 'simpleInputContainer',
29 30
                nodes => [
                    'vhostPort',        'vhostHttps',
31
                    'vhostMaintenance', 'vhostAliases',
32
                    'vhostType',        'vhostAuthnLevel',
33 34 35 36 37 38 39 40 41 42 43
                ],
            },
        ],
        samlIDPMetaDataNode => [
            'samlIDPMetaDataXML',
            'samlIDPMetaDataExportedAttributes',
            {
                title => 'samlIDPMetaDataOptions',
                help  => 'authsaml.html#options',
                form  => 'simpleInputContainer',
                nodes => [
44
                    'samlIDPMetaDataOptionsResolutionRule',
45 46 47 48 49 50
                    'samlIDPMetaDataOptionsNameIDFormat',
                    'samlIDPMetaDataOptionsForceAuthn',
                    'samlIDPMetaDataOptionsIsPassive',
                    'samlIDPMetaDataOptionsAllowProxiedAuthn',
                    'samlIDPMetaDataOptionsAllowLoginFromIDP',
                    'samlIDPMetaDataOptionsRequestedAuthnContext',
51
                    'samlIDPMetaDataOptionsRelayStateURL',
52 53 54 55 56 57 58
                ],
            },
            {
                title => "samlIDPMetaDataOptionsSession",
                form  => 'simpleInputContainer',
                nodes => [
                    "samlIDPMetaDataOptionsAdaptSessionUtime",
59
                    "samlIDPMetaDataOptionsForceUTF8",
60 61
                    "samlIDPMetaDataOptionsStoreSAMLToken",
                    "samlIDPMetaDataOptionsUserAttribute"
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
                ]
            },
            {
                title => "samlIDPMetaDataOptionsSignature",
                form  => 'simpleInputContainer',
                nodes => [
                    "samlIDPMetaDataOptionsSignSSOMessage",
                    "samlIDPMetaDataOptionsCheckSSOMessageSignature",
                    "samlIDPMetaDataOptionsSignSLOMessage",
                    "samlIDPMetaDataOptionsCheckSLOMessageSignature"
                ]
            },
            {
                title => "samlIDPMetaDataOptionsBinding",
                form  => 'simpleInputContainer',
                nodes => [
                    "samlIDPMetaDataOptionsSSOBinding",
                    "samlIDPMetaDataOptionsSLOBinding"
                ]
            },
            {
                title => "samlIDPMetaDataOptionsSecurity",
                form  => 'simpleInputContainer',
                nodes => [
                    "samlIDPMetaDataOptionsEncryptionMode",
87 88
                    "samlIDPMetaDataOptionsCheckTime",
                    "samlIDPMetaDataOptionsCheckAudience"
89
                ]
90
            },
Xavier Guimard's avatar
Tidy  
Xavier Guimard committed
91
            {
92 93 94 95 96 97
                title => "samlIDPMetaDataOptionsDisplay",
                form  => 'simpleInputContainer',
                nodes => [
                    "samlIDPMetaDataOptionsDisplayName",
                    "samlIDPMetaDataOptionsIcon"
                ]
98 99 100 101 102 103 104 105
            }
        ],
        samlSPMetaDataNode => [
            "samlSPMetaDataXML",
            "samlSPMetaDataExportedAttributes",
            {
                title => "samlSPMetaDataOptions",
                help  => 'idpsaml.html#options',
Xavier Guimard's avatar
Xavier Guimard committed
106
                nodes => [ {
107 108 109 110 111 112 113
                        title => "samlSPMetaDataOptionsAuthnResponse",
                        form  => 'simpleInputContainer',
                        nodes => [
                            "samlSPMetaDataOptionsNameIDFormat",
                            "samlSPMetaDataOptionsNameIDSessionKey",
                            "samlSPMetaDataOptionsOneTimeUse",
                            "samlSPMetaDataOptionsSessionNotOnOrAfterTimeout",
114 115
                            "samlSPMetaDataOptionsNotOnOrAfterTimeout",
                            "samlSPMetaDataOptionsForceUTF8"
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
                        ]
                    },
                    {
                        title => "samlSPMetaDataOptionsSignature",
                        form  => 'simpleInputContainer',
                        nodes => [
                            "samlSPMetaDataOptionsSignSSOMessage",
                            "samlSPMetaDataOptionsCheckSSOMessageSignature",
                            "samlSPMetaDataOptionsSignSLOMessage",
                            "samlSPMetaDataOptionsCheckSLOMessageSignature"
                        ]
                    },
                    {
                        title => "samlSPMetaDataOptionsSecurity",
                        form  => 'simpleInputContainer',
                        nodes => [
                            "samlSPMetaDataOptionsEncryptionMode",
Xavier Guimard's avatar
Xavier Guimard committed
133 134
                            "samlSPMetaDataOptionsEnableIDPInitiatedURL",
                            "samlSPMetaDataOptionsRule",
135 136 137 138 139 140 141 142 143 144 145
                        ]
                    }
                ]
            }
        ],
        oidcOPMetaDataNode => [
            'oidcOPMetaDataJSON',
            'oidcOPMetaDataJWKS',
            'oidcOPMetaDataExportedVars',
            {
                title => 'oidcOPMetaDataOptions',
Xavier Guimard's avatar
Xavier Guimard committed
146
                nodes => [ {
147
                        title => 'oidcOPMetaDataOptionsConfiguration',
148
                        form  => 'simpleInputContainer',
149 150 151 152
                        nodes => [
                            'oidcOPMetaDataOptionsConfigurationURI',
                            'oidcOPMetaDataOptionsJWKSTimeout',
                            'oidcOPMetaDataOptionsClientID',
153 154
                            'oidcOPMetaDataOptionsClientSecret',
                            'oidcOPMetaDataOptionsStoreIDToken'
155 156 157 158
                        ]
                    },
                    {
                        title => 'oidcOPMetaDataOptionsProtocol',
159
                        form  => 'simpleInputContainer',
160 161 162 163 164 165 166 167 168 169 170 171 172 173
                        nodes => [
                            'oidcOPMetaDataOptionsScope',
                            'oidcOPMetaDataOptionsDisplay',
                            'oidcOPMetaDataOptionsPrompt',
                            'oidcOPMetaDataOptionsMaxAge',
                            'oidcOPMetaDataOptionsUiLocales',
                            'oidcOPMetaDataOptionsAcrValues',
                            'oidcOPMetaDataOptionsTokenEndpointAuthMethod',
                            'oidcOPMetaDataOptionsCheckJWTSignature',
                            'oidcOPMetaDataOptionsIDTokenMaxAge',
                            'oidcOPMetaDataOptionsUseNonce'
                        ]
                    },
                    {
174
                        title => 'oidcOPMetaDataOptionsDisplayParams',
175
                        form  => 'simpleInputContainer',
176 177 178 179 180 181 182 183 184 185 186 187
                        nodes => [
                            'oidcOPMetaDataOptionsDisplayName',
                            'oidcOPMetaDataOptionsIcon'
                        ]
                    },
                ]
            },
        ],
        oidcRPMetaDataNode => [
            'oidcRPMetaDataExportedVars',
            {
                title => 'oidcRPMetaDataOptions',
Xavier Guimard's avatar
Xavier Guimard committed
188
                nodes => [ {
189
                        title => 'oidcRPMetaDataOptionsAuthentication',
190
                        form  => 'simpleInputContainer',
191 192 193 194 195 196 197
                        nodes => [
                            'oidcRPMetaDataOptionsClientID',
                            'oidcRPMetaDataOptionsClientSecret'
                        ]
                    },
                    {
                        title => 'oidcRPMetaDataOptionsDisplay',
198
                        form  => 'simpleInputContainer',
199 200 201 202 203 204 205 206 207
                        nodes => [
                            'oidcRPMetaDataOptionsDisplayName',
                            'oidcRPMetaDataOptionsIcon'
                        ],
                    },
                    'oidcRPMetaDataOptionsUserIDAttr',
                    'oidcRPMetaDataOptionsIDTokenSignAlg',
                    'oidcRPMetaDataOptionsIDTokenExpiration',
                    'oidcRPMetaDataOptionsAccessTokenExpiration',
208
                    'oidcRPMetaDataOptionsRedirectUris',
209
                    'oidcRPMetaDataOptionsBypassConsent',
210 211 212 213
                    {
                        title => 'logout',
                        form  => 'simpleInputContainer',
                        nodes => [
214
                            'oidcRPMetaDataOptionsPostLogoutRedirectUris',
215 216 217 218 219
                            'oidcRPMetaDataOptionsLogoutUrl',
                            'oidcRPMetaDataOptionsLogoutType',
                            'oidcRPMetaDataOptionsLogoutSessionRequired',
                        ]
                    },
Xavier Guimard's avatar
Xavier Guimard committed
220
                    'oidcRPMetaDataOptionsRule',
221 222
                ]
            },
223
            'oidcRPMetaDataOptionsExtraClaims',
224
        ],
Xavier Guimard's avatar
Xavier Guimard committed
225
        casSrvMetaDataNode => [ {
226
                title => 'casSrvMetaDataOptions',
Christophe Maudoux's avatar
Christophe Maudoux committed
227
                form  => 'simpleInputContainer',
228 229 230 231
                nodes => [
                    'casSrvMetaDataOptionsUrl',
                    'casSrvMetaDataOptionsRenew',
                    'casSrvMetaDataOptionsGateway',
Xavier Guimard's avatar
Xavier Guimard committed
232 233
                    'casSrvMetaDataOptionsDisplayName',
                    'casSrvMetaDataOptionsIcon',
234 235 236
                ]
            },
            'casSrvMetaDataExportedVars',
Clément OUDOT's avatar
Clément OUDOT committed
237
            'casSrvMetaDataOptionsProxiedServices',
238
        ],
Xavier Guimard's avatar
Xavier Guimard committed
239
        casAppMetaDataNode => [ {
240
                title => 'casAppMetaDataOptions',
Christophe Maudoux's avatar
Christophe Maudoux committed
241
                form  => 'simpleInputContainer',
Xavier Guimard's avatar
Xavier Guimard committed
242 243 244 245
                nodes => [
                    'casAppMetaDataOptionsService',
                    'casAppMetaDataOptionsRule'
                ]
246 247 248
            },
            'casAppMetaDataExportedVars',
        ],
249 250 251 252
    };
}

1;