diff options
author | jrags <> | 2006-11-02 00:12:31 +0000 |
---|---|---|
committer | jrags <> | 2006-11-02 00:12:31 +0000 |
commit | b8d6533282e914c7d3541ce8a12d99a7f11cd6fc (patch) | |
tree | 047ed73d5d1d8dda837cbd141d972addea3a52d8 /framework/Web/Security/TFormsAuthentication.php | |
parent | 85e8f7c8854e895b978c02b5fed090eede06dbea (diff) |
TLogin control renders now, working on intergrating it into the membership provider for authentication
Diffstat (limited to 'framework/Web/Security/TFormsAuthentication.php')
-rw-r--r-- | framework/Web/Security/TFormsAuthentication.php | 186 |
1 files changed, 133 insertions, 53 deletions
diff --git a/framework/Web/Security/TFormsAuthentication.php b/framework/Web/Security/TFormsAuthentication.php index 5830d7eb..970303a7 100644 --- a/framework/Web/Security/TFormsAuthentication.php +++ b/framework/Web/Security/TFormsAuthentication.php @@ -35,62 +35,142 @@ final class TFormsAuthentication } - public static Authenticate($name, $password); - public static Decrypt($encryptedTicket); - public static Encrypt($ticket); - private static Encrypt($ticket, $hexEncodedTicket); - public static GetAuthCookie( $$userName, $createPersistentCookie); - public static GetAuthCookie( $$userName, $createPersistentCookie, strCookiePath); - private static GetAuthCookie( $userName, $createPersistentCookie, strCookiePath, hexEncodedTicket); - public static GetLoginPage( $extraQuery); - public static GetLoginPage( $extraQuery, $reuseReturnUrl); - public static GetRedirectUrl( $userName, $createPersistentCookie); - public static GetReturnUrl( $useDefaultIfAbsent); - public static HashPasswordForStoringInConfigFile($password, $passwordFormat); - public static Initialize(); - private static ernalAuthenticate( $name, $password); - private static IsPathWithinAppRoot($context, $path); - private static MakeTicketoBinaryBlob($ticket); - public static RedirectFromLoginPage($userName, $createPersistentCookie); - public static RedirectFromLoginPage($userName, $createPersistentCookie, $strCookiePath); - public static RedirectToLoginPage(); - public static RedirectToLoginPage($extraQuery); - private static RemoveQSVar($ref $strUrl, $posQ, $token, $sep, $lenAtStartToLeave); - public static RemoveQueryVariableFromUrl( $strUrl, $QSVar); - public static RenewTicketIfOld($tOld); - public static SetAuthCookie( $userName, $createPersistentCookie); - public static SetAuthCookie( $userName, $createPersistentCookie, $strCookiePath); - public static SignOut(); + public static function Authenticate($name, $password) + { + + } + public static function Decrypt($encryptedTicket) + { + + } + public static function Encrypt($ticket, $hexEncodedTicket=null) + { + + } + public static function GetAuthCookie( $userName, $createPersistentCookie, $strCookiePath=null, $hexEncodedTicket=null) + { + + } + public static function GetLoginPage($extraQuery,$reuseReturnUrl=null) + { + + } + public static function GetRedirectUrl( $userName, $createPersistentCookie) + { + + } + public static function GetReturnUrl($useDefaultIfAbsent) + { + + } + public static function HashPasswordForStoringInConfigFile($password, $passwordFormat) + { + + } + public static function Initialize() + { + + } + private static function ernalAuthenticate( $name, $password) + { + + } + private static function IsPathWithinAppRoot($context, $path) + { + + } + private static function MakeTicketoBinaryBlob($ticket) + { + + } + public static function RedirectFromLoginPage($userName, $createPersistentCookie, $strCookiePath=null) + { + + } + public static function RedirectToLoginPage($extraQuery=null) + { + + } + private static function RemoveQSVar($ref, $strUrl, $posQ, $token, $sep, $lenAtStartToLeave) + { + + } + public static function RemoveQueryVariableFromUrl( $strUrl, $QSVar) + { + + } + public static function RenewTicketIfOld($tOld) + { + + } + public static function SetAuthCookie( $userName, $createPersistentCookie, $strCookiePath=null) + { + + } + public static function SignOut() + { + + } // Properties - public static CookieDomain { get; } - public static HttpCookieMode CookieMode { get; } - public static CookiesSupported { get; } - public static DefaultUrl { get; } - public static EnableCrossAppRedirects { get; } - public static FormsCookieName { get; } - public static FormsCookiePath { get; } - public static LoginUrl { get; } - public static RequireSSL { get; } - public static SlidingExpiration { get; } + public static function getCookieDomain() + { + return self::$_cookieDomain; + } + public static function getCookieMode() + { + return self::$_cookieMode; + } + public static function getCookiesSupported() + { + return self::$_cookiesSupported; + } + public static function getDefaultUrl() + { + return self::$_defaultUrl; + } + public static function getEnableCrossAppRedirects() + { + return self::$_enableCrossAppRedirects; + } + public static function getFormsCookieName() + { + return self::$_formsCookieName; + } + public static function getFormsCookiePath() + { + return self::$_formsCookiePath; + } + public static function getLoginUrl() + { + return self::$_loginUrl; + } + public static function getRequireSSL() + { + return self::$_requireSSL; + } + public static function getSlidingExpiration() + { + return self::$_slidingExpiration; + } // Fields - private static _CookieDomain; - private static HttpCookieMode _CookieMode; - private static _DefaultUrl; - private static _EnableCrossAppRedirects; - private static _FormsCookiePath; - private static _FormsName; - private static _Initialized; - private static object _lockObject; - private static _LoginUrl; - private static FormsProtectionEnum _Protection; - private static _RequireSSL; - private static _SlidingExpiration; - private static _Timeout; - private const CONFIG_DEFAULT_COOKIE = ".ASPXAUTH"; - private const MAC_LENGTH = 20; - private const MAX_TICKET_LENGTH = 0x1000; - ernal const RETURN_URL = "ReturnUrl"; + // private static $_CookieDomain; + // private static $_CookieMode; + // private static $_DefaultUrl; + // private static $_EnableCrossAppRedirects; + // private static $_FormsCookiePath; + // private static $_FormsName; + // private static $_Initialized; + // private static $_lockObject; + // private static $_LoginUrl; + // private static $_Protection; + // private static $_RequireSSL; + // private static $_SlidingExpiration; + // private static $_Timeout; + // private const CONFIG_DEFAULT_COOKIE = ".ASPXAUTH"; + // private const MAC_LENGTH = 20; + // private const MAX_TICKET_LENGTH = 0x1000; + // ernal const RETURN_URL = "ReturnUrl"; } ?>
\ No newline at end of file |