Skip to content

Radius

Browse implementations

Define a radius target

For all radius actions, target must defined these three properties (See RadiusClient for more details)

  • sharedSecret
  • authenticatePort
  • accountingPort
Radius target example
1
2
3
4
5
6
7
8
9
{
    "name": "RADIUS_TARGET",
    "url": "udp://my.radius.service:1211/",
    "properties": {
        "sharedSecret": "a_secret",
        "authenticatePort": "1812",
        "accountingPort": "1813"
    }
}

Radius accounting🔗

Required Name Type Default Comment
* target String
* userName String
* accountingType Integer between 1 and 15
attributes Map<String, String>
Name Type
radiusResponse RadiusPacket

Example🔗

1
2
3
4
5
6
7
8
9
RadiusAccountingAction(
    target = "RADIUS_TARGET",
    userName = "iotUsername",
    attributes = mapOf(
      "Framed-IP-Address" to "123.456.789.1"
      "Acct-Session-Id" to "123456"
    ),
    accountingType = "1"
)

Radius authenticate🔗

Protocols mschapv2 and eap are not yet supported by our client. See AccessRequest.encodeRequestAttributes(...)

Required Name Type Default Comment
* target String
* userName String
* userPassword String
protocol String pap pap or chap
attributes Map<String, String>
Name Type
radiusResponse RadiusPacket

Example🔗

1
2
3
4
5
6
7
8
9
RadiusAuthenticateAction(
    target = "RADIUS_TARGET",
    userName = "https://github.com/search?q=chutney",
    userPassword = "some content",
    protocol = "",
    attributes = mapOf(
      "NAS-identifier" to "NAS_OPERATOR"
    )
)