... | ... |
@@ -207,11 +207,33 @@ request_route { |
207 | 207 |
... |
208 | 208 |
</programlisting> |
209 | 209 |
</example> |
210 |
+ </section> |
|
211 |
+ <section id="secsipid.f.secsipid_get_url"> |
|
212 |
+ <title> |
|
213 |
+ <function moreinfo="none">secsipid_get_url(url, ovar)</function> |
|
214 |
+ </title> |
|
210 | 215 |
<para> |
211 |
- Further checks can be done with config operations, decoding the JWT header |
|
212 |
- and payload using {s.select} and {s.decode.base64t} transformations |
|
213 |
- together with jansson module. |
|
216 |
+ Get the content of a URL and store the result in a variable. |
|
217 |
+ </para> |
|
218 |
+ <para> |
|
219 |
+ The url parameters can contain pseudo-variables and ovar has to be |
|
220 |
+ the name of a writtable pseudo-variable. |
|
221 |
+ </para> |
|
222 |
+ <para> |
|
223 |
+ This function can be used from ANY_ROUTE. |
|
214 | 224 |
</para> |
225 |
+ <example> |
|
226 |
+ <title><function>secsipid_get_url</function> usage</title> |
|
227 |
+ <programlisting format="linespecific"> |
|
228 |
+... |
|
229 |
+request_route { |
|
230 |
+ ... |
|
231 |
+ if(secsipid_get_url("https://$fd/stirshaken/cert.pem", "$var(pubkey)")) { ... } |
|
232 |
+ ... |
|
233 |
+} |
|
234 |
+... |
|
235 |
+</programlisting> |
|
236 |
+ </example> |
|
215 | 237 |
</section> |
216 | 238 |
<section id="secsipid.f.secsipid_add_identity"> |
217 | 239 |
<title> |