Debian Codegraph @

doc/sources/admin/variables.rst

raw
1 Variables
2 =========
3
4 Presentation
5 ------------
6
7 Variables can be used in rules and headers. All rules are concerned:
8
9 - Access rule in virtual host
10 - SAML IDP preselection
11 - Session opening
12 - ...
13
14 Variables are stored in the user session. We can distinguish several
15 kind of variables:
16
17 - internal variables, managed by LemonLDAP::NG
18 - :doc:`exported variables<exportedvars>` collected from UserDB backend
19 - :ref:`macro and groups<macros_and_groups>`
20
21 When you know the key of the variable, you just have to prefix it with
22 the dollar sign to use it, for example to test if ``uid`` variable match
23 ``coudot`` :
24
25 ::
26
27 $uid eq "coudot"
28
29
30 .. tip::
31
32 You can inspect a user session with the sessions explorer (in
33 Manager)
34
35 Below are documented internal variables.
36
37 Modules
38 -------
39
40 Register what module was used for authentication, user data, password,
41 ...
42
43 ============= =====================================================================
44 Key Description
45 ============= =====================================================================
46 \_auth Authentication module
47 \_userDB User module
48 \_passwordDB Password module
49 \_2f Second factor (if 2FA was used)
50 \_issuerDB Issuer module (can be multivalued)
51 \_authChoice User choice done if :doc:`authentication choice<authchoice>` was used
52 \_authMulti Full name of authentication module (with ``#label``) used in Multi
53 \_userDBMulti Full name of user module (with ``#label``) used in Multi
54 ============= =====================================================================
55
56 Connection
57 ----------
58
59 Data concerning the first connection to the portal
60
61 ========== ========================================================================================================================================
62 Key Description
63 ========== ========================================================================================================================================
64 ipAddr IP of the user (special care must be taken is you run the portal :doc:`behind a reverse proxy<behindproxyminihowto>`)
65 \_timezone Timezone of the user, set with javascript from standard login form (will be empty if other authentication methods are used)
66 \_url URL used before being redirected to the portal (empty if portal was used as entry point)
67 ========== ========================================================================================================================================
68
69 Authentication
70 --------------
71
72 Data around the authentication process.
73
74 =================== =========================================================================================================
75 Key Description
76 =================== =========================================================================================================
77 \_session_id Session identifier (carried in cookie)
78 \_user User found from login process
79 \_password Password found from login process (only if :doc:`password store in session<passwordstore>` is configured)
80 authenticationLevel Authentication level
81 =================== =========================================================================================================
82
83 Dates
84 -----
85
86 ================ =====================================
87 Key Description
88 ================ =====================================
89 \_utime Timestamp of session creation
90 \_startTime Date of session creation
91 \_updateTime Date of session last modification
92 \_lastAuthnUTime Timestamp of last authentication time
93 ================ =====================================
94
95 SAML
96 ----
97
98 Data related to SAML protocol
99
100 =================== ================================================
101 Key Description
102 =================== ================================================
103 \_idp Name of IDP used for authentication
104 \_idpConfKey Configuration key of IDP used for authentication
105 \_samlToken SAML token
106 \_lassoSessionDump Lasso session dump
107 \_lassoIdentityDump Lasso identity dump
108 =================== ================================================
109
110 Notifications
111 -------------
112
113 ====================== ===========================================
114 Key Description
115 ====================== ===========================================
116 \_notification\_\ *id* Date of validation of the notification *id*
117 ====================== ===========================================
118
119 Login history
120 -------------
121
122 ============== ==================================
123 Key Description
124 ============== ==================================
125 \_loginHistory HASH of login success and failures
126 ============== ==================================
127
128 Application history
129 -------------------
130
131 ============== ==================================
132 Key Description
133 ============== ==================================
134 \_appHistory HASH of accessed applications
135 ============== ==================================
136
137 LDAP
138 ----
139
140 Only with UserDB LDAP.
141
142 ==== ==================
143 Key Description
144 ==== ==================
145 \_dn Distinguished name
146 ==== ==================
147
148 OpenID
149 ------
150
151 ================ =============================================
152 Key Description
153 ================ =============================================
154 \_openid\_\ *id* Consent to share attribute *id* through OpenID
155 ================ =============================================
156
157 OpenID Connect
158 --------------
159
160 ============================ ======================================================================
161 Key Description
162 ============================ ======================================================================
163 \_oidc_id_token ID Token
164 \_oidc_OP Configuration key of OP used for authentication
165 \_oidc_access_token OAuth2 Access Token used to get UserInfo data
166 \_oidc_access_token_eol Timestamp after which the Access Token should no longer be valid
167 \_oidc_refresh_token OAuth2 Refresh Token. This should never be transmitted to applications
168 \_oidc_consent_scope\_\ *rp* Scope for which consent was given for RP *rp*
169 \_oidc_consent_time\_\ *rp* Time when consent was given for RP *rp*
170 \_oidc_sub `sub` claim received from the OP
171 \_oidc_acr *Since 2.23.0*: `acr` claim received from the OP
172 \_oidc_amr *Since 2.23.0*: `amr` claim received from the OP, serialized as a flat string, for use with :ref:`listMatch`
173 ============================ ======================================================================
174
175 Other
176 -----
177
178 =============== ======================================
179 Key Description
180 =============== ======================================
181 \_appsListOrder Order of categories in the menu
182 \_session_kind Type of session (SSO, Persistent, ...)
183 =============== ======================================