]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix up the default rest module config
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 23 Jul 2024 21:39:20 +0000 (17:39 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 23 Jul 2024 21:39:26 +0000 (17:39 -0400)
raddb/mods-available/rest

index e96ed00fb6a1fe4b3fdcb62f13aa2156d9d2bf88..0dd1660dfff2a219c717fbcbdc3af9df8f41dbd9 100644 (file)
@@ -363,8 +363,10 @@ rest {
        #  |===
        #
        authorize {
-               uri = "${..connect_uri}/user/%{User-Name}/mac/%{Called-Station-ID}?section=authorize"
-               method = 'GET'
+               request {
+                       uri = "${..connect_uri}/user/%{User-Name}/mac/%{Called-Station-ID}?section=authorize"
+                       method = 'GET'
+               }
                tls = ${..tls}
        }
 
@@ -374,8 +376,10 @@ rest {
        #  Same as `Authorize { ... }`
        #
        authenticate {
-               uri = "${..connect_uri}/user/%{User-Name}/mac/%{Called-Station-ID}?section=authenticate"
-               method = 'GET'
+               request {
+                       uri = "${..connect_uri}/user/%{User-Name}/mac/%{Called-Station-ID}?section=authenticate"
+                       method = 'GET'
+               }
                tls = ${..tls}
        }
 
@@ -392,8 +396,10 @@ rest {
        #  |===
        #
        accounting {
-               uri = "${..connect_uri}/user/%{User-Name}/sessions/%{Acct-Unique-Session-ID}"
-               method = 'POST'
+               request {
+                       uri = "${..connect_uri}/user/%{User-Name}/sessions/%{Acct-Unique-Session-ID}"
+                       method = 'POST'
+               }
                tls = ${..tls}
        }
 
@@ -403,8 +409,10 @@ rest {
        #  Same as `Accounting { ... }`
        #
        post-auth {
-               uri = "${..connect_uri}/user/%{User-Name}/mac/%{Called-Station-ID}?action=post-auth"
-               method = 'POST'
+               request {
+                       uri = "${..connect_uri}/user/%{User-Name}/mac/%{Called-Station-ID}?action=post-auth"
+                       method = 'POST'
+               }
                tls = ${..tls}
        }