From: Arran Cudbard-Bell Date: Tue, 23 Jul 2024 21:39:20 +0000 (-0400) Subject: Fix up the default rest module config X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=026091a63efb448b99ce8b76a4cf40c159b454b6;p=thirdparty%2Ffreeradius-server.git Fix up the default rest module config --- diff --git a/raddb/mods-available/rest b/raddb/mods-available/rest index e96ed00fb6a..0dd1660dfff 100644 --- a/raddb/mods-available/rest +++ b/raddb/mods-available/rest @@ -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} }