server default { listen { type = auth ipaddr = * port = 1812 } listen { type = acct ipaddr = * port = 1813 } authorize { # Llama a la API REST para decidir y añadir atributos rest # Si la API no estableció Auth-Type, aceptamos por defecto (demo) if (!&control:Auth-Type) { update control { Auth-Type := Accept } } } authenticate { # Aceptar todo cuando control:Auth-Type := Accept Auth-Type Accept { ok } } accounting { rest ok } post-auth { # Aquí podríamos volver a llamar a REST para atributos dinámicos # rest } }