Skip to content

austegard/csharp_auth_tkt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ModAuthTkt-CSharp

Introduction

For an introduction to ModAuthTkt-CSharp, see Single Sign-On Using Mod_Auth_Tkt

ModAuthTkt Example

To create a mod auth tkt with this C# implementation, just follow this example code:

var ticketData = new AuthenticationTicketData
{
    UserId = "id",
    UserData = "UserData:this;UserData:this;",
    TimeStamp = DateTime.Now,
    IPAddress = "0.0.0.0"
};

var secret = "9a4e3c23-6566-4076-8e71-901d8b068d47";
var encode = false;

string modauthtkt = AuthenticationTicket.Create(ticketData, secret, encode);

Credits

This code was ported to C# by Robin Kaye of Applied Information Sciences (AIS).
It has since been maintained and tweaked by David Benson.

About

mod_auth_tkt implementation in C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published