https://github.com/vforteli/flexinets.radius.radiusclient
Radius client for .Net (Net Standard)
https://github.com/vforteli/flexinets.radius.radiusclient
dotnet netstandard radius radius-client rfc2865 rfc2866
Last synced: 2 months ago
JSON representation
Radius client for .Net (Net Standard)
- Host: GitHub
- URL: https://github.com/vforteli/flexinets.radius.radiusclient
- Owner: vforteli
- License: mit
- Created: 2017-08-14T09:07:00.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2024-11-29T13:24:46.000Z (8 months ago)
- Last Synced: 2025-05-07T14:06:08.452Z (2 months ago)
- Topics: dotnet, netstandard, radius, radius-client, rfc2865, rfc2866
- Language: C#
- Homepage:
- Size: 38.1 KB
- Stars: 12
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Radius client library for .NET Standard
This library can be used to asynchronously send packets to Radius servers
## RadiusClient usage
```csharp
using var client = new RadiusClient(
new IPEndPoint(IPAddress.Any, 58733),
new RadiusPacketParser(
loggerFactory.CreateLogger(),
RadiusDictionary.Parse(DefaultDictionary.RadiusDictionary)));var requestPacket = new RadiusPacket(PacketCode.AccessRequest, 0, "xyzzy5461");
requestPacket.AddMessageAuthenticator(); // Add message authenticator for BLASTRadius
requestPacket.AddAttribute("User-Name", "nemo");
requestPacket.AddAttribute("User-Password", "arctangent");var responsePacket = await client.SendPacketAsync(
requestPacket,
new IPEndPoint(IPAddress.Parse("127.0.0.1"), 1812));if (responsePacket.Code == PacketCode.AccessAccept)
{
// Hooray
}
```Multiple requests and responses can be made asynchronously on the same local port as long as the identifier and remote host:port remain unique
https://www.nuget.org/packages/Flexinets.Radius.RadiusClient/