RADIUS: pass Access-Request attributes (Calling-Station-Id, NAS-Identifier) to flow policies
Is your feature request related to a problem?
Network devices that use the RADIUS provider for administrator logins (SSH/vty, PAP) say where each login comes from: Calling-Station-Id is the user's source address, and NAS-Identifier / NAS-IP-Address name the device. We want to check these in a policy, for example to refuse or step up logins from unknown networks, and to log them.
The PAP handler (internal/outpost/radius/handler_pap.go) reads only User-Name and User-Password. The only address that reaches core is the NAS address (DelegateClientIP), so policies cannot tell where the user is. RADIUS property mappings do not help: they build the reply, not read the request.
Describe the solution you'd like
The outpost adds these attributes to the flow executor parameters, next to the existing goauthentik.io/outpost/radius=true:
goauthentik.io/outpost/radius/calling_station_id
goauthentik.io/outpost/radius/nas_identifier
goauthentik.io/outpost/radius/nas_ip_address
A policy then reads them:
q = request.http_request.session.get("authentik/flows/get", {})
src = q.get("goauthentik.io/outpost/radius/calling_station_id")
We have a patch with unit tests (one helper, addFlowParams, called from the PAP handler) and tested it on 2026.11.0. An SSH login through a RADIUS client reached the policy with calling_station_id=172.28.0.1, nas_identifier=edge-sw01, and a policy that returned false refused the login.
Query parameters can also be set by any HTTP client that starts the flow, so the flow should be set to "Require outpost". On 2026.11.0 the outpost still works with that setting, while a direct HTTP request with forged parameters gets "Flow does not apply to current user". If a stronger interface is preferred, for example core putting the attributes under context["outpost"] only for outpost requests, we are happy to implement that instead.
Describe alternatives that you've considered
FreeRADIUS in front of the outpost (discussion #8825) can log the attributes, but then the decision sits outside authentik.
Additional context
Related, for the reply direction: #6091, #25284.
AI disclosure
I used Claude Code (Claude Opus 5.5) to read the outpost and core code, write the patch and its tests, and draft this issue. I reviewed the text and tested the patch on my own deployment.