Represents the Identity of a User.
For a list of all members of this type, see TypeKeyIdentity Members.
System.Object
TypeKeyIdentity
After you install the TypeKeyAuthenticationModule, a TypeKeyIdentity object is made available
to you in every incoming request.
For more information on TypeKey authentication, see
http://www.movabletype.org/docs/tk-apps.html.
using TypeKeySecurity; TypeKeyIdentity id = (TypeKeyIdentity)Context.User.Identity; // was the user authenticated within 600 seconds (10 minutes)? if (id.IsAuthFresh(600)) { // access id.Name, id.NameHash, id.Email and id.Nick // log the user out with LogoutUser and LogoutUrl } else { id.LoginUser(false); // force the user to log in // or use LoginUrl }
Namespace: TypeKeySecurity
Assembly: TypeKeySecurity (in TypeKeySecurity.dll)