2 // System.Web.Security.PassportIdentity.cs
5 // Gonzalo Paniagua Javier (gonzalo@ximian.com)
6 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
8 // (C) 2002 Ximian, Inc (http://www.ximian.com)
9 // Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com)
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 using System.Security.Permissions;
32 using System.Security.Principal;
34 namespace System.Web.Security {
36 [MonoNotSupported ("")]
37 [MonoTODO("Not implemented")]
38 // CAS - no InheritanceDemand here as the class is sealed
39 [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
40 [Obsolete ("This type is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.")]
41 public sealed class PassportIdentity : IIdentity, IDisposable {
42 [SecurityPermission (SecurityAction.Demand, UnmanagedCode = true)]
43 public PassportIdentity ()
51 public string AuthUrl ()
53 return AuthUrl (null, -1, -1, null, -1, null, -1, -1);
56 public string AuthUrl (String strReturnUrl)
58 return AuthUrl (strReturnUrl, -1, -1, null, -1, null, -1, -1);
61 public string AuthUrl (string strReturnUrl,
64 string strCoBrandedArgs,
70 return AuthUrl (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
73 [MonoTODO("Not implemented")]
74 public string AuthUrl (string strReturnUrl,
77 string strCoBrandedArgs,
83 throw new NotImplementedException ();
86 public string AuthUrl2 ()
88 return AuthUrl2 (null, -1, -1, null, -1, null, -1, -1);
91 public string AuthUrl2 (String strReturnUrl)
93 return AuthUrl2 (strReturnUrl, -1, -1, null, -1, null, -1, -1);
96 public string AuthUrl2 (string strReturnUrl,
99 string strCoBrandedArgs,
105 return AuthUrl2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
108 [MonoTODO("Not implemented")]
109 public string AuthUrl2 (string strReturnUrl,
112 string strCoBrandedArgs,
118 throw new NotImplementedException ();
121 [MonoTODO("Not implemented")]
122 public static string Compress (string strData)
124 throw new NotImplementedException ();
127 [MonoTODO("Not implemented")]
128 public static bool CryptIsValid ()
130 throw new NotImplementedException ();
133 [MonoTODO("Not implemented")]
134 public static int CryptPutHost (string strHost)
136 throw new NotImplementedException ();
139 [MonoTODO("Not implemented")]
140 public static int CryptPutSite (string strSite)
142 throw new NotImplementedException ();
145 [MonoTODO("Not implemented")]
146 public static string Decompress (string strData)
148 throw new NotImplementedException ();
151 [MonoTODO("Not implemented")]
152 public static string Decrypt (string strData)
154 throw new NotImplementedException ();
157 [MonoTODO("Not implemented")]
158 public static string Encrypt (string strData)
160 throw new NotImplementedException ();
163 [MonoTODO("Not implemented")]
164 public object GetCurrentConfig (string strAttribute)
166 throw new NotImplementedException ();
169 [MonoTODO("Not implemented")]
170 public string GetDomainAttribute (string strAttribute, int iLCID, string strDomain)
172 throw new NotImplementedException ();
175 [MonoTODO("Not implemented")]
176 public string GetDomainFromMemberName (string strMemberName)
178 throw new NotImplementedException ();
181 public bool GetIsAuthenticated (int iTimeWindow, bool bForceLogin, bool bCheckSecure)
183 return this.GetIsAuthenticated (iTimeWindow, (bForceLogin ? 1 : 0), (bCheckSecure ? 1 : 0));
186 [MonoTODO("Not implemented")]
187 public bool GetIsAuthenticated (int iTimeWindow, int iForceLogin, int iCheckSecure)
189 throw new NotImplementedException ();
192 public string GetLoginChallenge ()
194 return GetLoginChallenge (null, -1, -1, null, -1, null, -1, -1, null);
197 public string GetLoginChallenge (String strReturnUrl)
199 return GetLoginChallenge (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
202 [MonoTODO("Not implemented")]
203 public string GetLoginChallenge (string szRetURL,
206 string szCOBrandArgs,
213 throw new NotImplementedException ();
216 [MonoTODO("Not implemented")]
217 public object GetOption (string strOpt)
219 throw new NotImplementedException ();
222 [MonoTODO("Not implemented")]
223 public object GetProfileObject (string strProfileName)
225 throw new NotImplementedException ();
228 [MonoTODO("Not implemented")]
229 public bool HasFlag (int iFlagMask)
231 throw new NotImplementedException ();
234 [MonoTODO("Not implemented")]
235 public bool HasProfile (string strProfile)
237 throw new NotImplementedException ();
240 [MonoTODO("Not implemented")]
241 public bool HaveConsent (bool bNeedFullConsent, bool bNeedBirthdate)
243 throw new NotImplementedException ();
246 public int LoginUser ()
248 return LoginUser (null, -1, -1, null, -1, null, -1, -1, null);
251 public int LoginUser (String strReturnUrl)
253 return LoginUser (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
256 public int LoginUser (string szRetURL,
259 string szCOBrandArgs,
266 return LoginUser (szRetURL, iTimeWindow, (fForceLogin ? 1 : 0), szCOBrandArgs, iLangID, strNameSpace, iKPP, (fUseSecureAuth ? 1 : 0), null);
269 [MonoTODO("Not implemented")]
270 public int LoginUser (string szRetURL,
273 string szCOBrandArgs,
280 throw new NotImplementedException ();
283 public string LogoTag ()
285 return LogoTag (null, -1, -1, null, -1, -1, null, -1, -1);
288 public string LogoTag (String strReturnUrl)
290 return LogoTag (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
293 public string LogoTag (string strReturnUrl,
296 string strCoBrandedArgs,
303 return LogoTag (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
306 [MonoTODO("Not implemented")]
307 public string LogoTag (string strReturnUrl,
310 string strCoBrandedArgs,
317 throw new NotImplementedException ();
320 public string LogoTag2 ()
322 return LogoTag2 (null, -1, -1, null, -1, -1, null, -1, -1);
325 public string LogoTag2 (String strReturnUrl)
327 return LogoTag2 (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
330 public string LogoTag2 (string strReturnUrl,
333 string strCoBrandedArgs,
340 return LogoTag2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
343 [MonoTODO("Not implemented")]
344 public string LogoTag2 (string strReturnUrl,
347 string strCoBrandedArgs,
354 throw new NotImplementedException ();
357 public string LogoutURL ()
359 return LogoutURL (null, null, -1, null, -1);
362 [MonoTODO("Not implemented")]
363 public string LogoutURL (string szReturnURL,
364 string szCOBrandArgs,
369 throw new NotImplementedException ();
372 [MonoTODO("Not implemented")]
373 public void SetOption (string strOpt, object vOpt)
375 throw new NotImplementedException ();
378 [MonoTODO("Not implemented")]
379 public static void SignOut (string strSignOutDotGifFileName)
381 throw new NotImplementedException ();
384 [MonoTODO("Not implemented")]
385 public object Ticket (string strAttribute)
387 throw new NotImplementedException ();
390 [MonoTODO("Not implemented")]
391 public string AuthenticationType
394 throw new NotImplementedException ();
398 [MonoTODO("Not implemented")]
402 throw new NotImplementedException ();
406 [MonoTODO("Not implemented")]
407 public bool GetFromNetworkServer
410 throw new NotImplementedException ();
414 [MonoTODO("Not implemented")]
415 public bool HasSavedPassword
418 throw new NotImplementedException ();
422 [MonoTODO("Not implemented")]
423 public bool HasTicket
426 throw new NotImplementedException ();
430 [MonoTODO("Not implemented")]
431 public string HexPUID
434 throw new NotImplementedException ();
438 [MonoTODO("Not implemented")]
439 public bool IsAuthenticated
442 throw new NotImplementedException ();
446 [MonoTODO("Not implemented")]
447 public string this [string strProfileName]
450 throw new NotImplementedException ();
454 [MonoTODO("Not implemented")]
458 throw new NotImplementedException ();
462 [MonoTODO("Not implemented")]
466 throw new NotImplementedException ();
470 [MonoTODO("Not implemented")]
471 public int TimeSinceSignIn
474 throw new NotImplementedException ();
478 void IDisposable.Dispose ()