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)]
41 [Obsolete ("This type is obsolete. The Passport authentication product is no longer supported and has been superseded by Live ID.")]
44 public sealed class PassportIdentity : IIdentity, IDisposable {
46 public sealed class PassportIdentity : IIdentity {
48 [SecurityPermission (SecurityAction.Demand, UnmanagedCode = true)]
49 public PassportIdentity ()
57 public string AuthUrl ()
59 return AuthUrl (null, -1, -1, null, -1, null, -1, -1);
62 public string AuthUrl (String strReturnUrl)
64 return AuthUrl (strReturnUrl, -1, -1, null, -1, null, -1, -1);
67 public string AuthUrl (string strReturnUrl,
70 string strCoBrandedArgs,
76 return AuthUrl (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
79 [MonoTODO("Not implemented")]
80 public string AuthUrl (string strReturnUrl,
83 string strCoBrandedArgs,
89 throw new NotImplementedException ();
92 public string AuthUrl2 ()
94 return AuthUrl2 (null, -1, -1, null, -1, null, -1, -1);
98 public string AuthUrl2 (String strReturnUrl)
100 return AuthUrl2 (strReturnUrl, -1, -1, null, -1, null, -1, -1);
104 public string AuthUrl2 (string strReturnUrl,
107 string strCoBrandedArgs,
113 return AuthUrl2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
116 [MonoTODO("Not implemented")]
117 public string AuthUrl2 (string strReturnUrl,
120 string strCoBrandedArgs,
126 throw new NotImplementedException ();
129 [MonoTODO("Not implemented")]
130 public static string Compress (string strData)
132 throw new NotImplementedException ();
135 [MonoTODO("Not implemented")]
136 public static bool CryptIsValid ()
138 throw new NotImplementedException ();
141 [MonoTODO("Not implemented")]
142 public static int CryptPutHost (string strHost)
144 throw new NotImplementedException ();
147 [MonoTODO("Not implemented")]
148 public static int CryptPutSite (string strSite)
150 throw new NotImplementedException ();
153 [MonoTODO("Not implemented")]
154 public static string Decompress (string strData)
156 throw new NotImplementedException ();
159 [MonoTODO("Not implemented")]
160 public static string Decrypt (string strData)
162 throw new NotImplementedException ();
165 [MonoTODO("Not implemented")]
166 public static string Encrypt (string strData)
168 throw new NotImplementedException ();
171 [MonoTODO("Not implemented")]
172 public object GetCurrentConfig (string strAttribute)
174 throw new NotImplementedException ();
177 [MonoTODO("Not implemented")]
178 public string GetDomainAttribute (string strAttribute, int iLCID, string strDomain)
180 throw new NotImplementedException ();
183 [MonoTODO("Not implemented")]
184 public string GetDomainFromMemberName (string strMemberName)
186 throw new NotImplementedException ();
189 public bool GetIsAuthenticated (int iTimeWindow, bool bForceLogin, bool bCheckSecure)
191 return this.GetIsAuthenticated (iTimeWindow, (bForceLogin ? 1 : 0), (bCheckSecure ? 1 : 0));
194 [MonoTODO("Not implemented")]
195 public bool GetIsAuthenticated (int iTimeWindow, int iForceLogin, int iCheckSecure)
197 throw new NotImplementedException ();
200 public string GetLoginChallenge ()
202 return GetLoginChallenge (null, -1, -1, null, -1, null, -1, -1, null);
206 public string GetLoginChallenge (String strReturnUrl)
208 return GetLoginChallenge (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
212 [MonoTODO("Not implemented")]
213 public string GetLoginChallenge (string szRetURL,
216 string szCOBrandArgs,
223 throw new NotImplementedException ();
226 [MonoTODO("Not implemented")]
227 public object GetOption (string strOpt)
229 throw new NotImplementedException ();
232 [MonoTODO("Not implemented")]
233 public object GetProfileObject (string strProfileName)
235 throw new NotImplementedException ();
238 [MonoTODO("Not implemented")]
239 public bool HasFlag (int iFlagMask)
241 throw new NotImplementedException ();
244 [MonoTODO("Not implemented")]
245 public bool HasProfile (string strProfile)
247 throw new NotImplementedException ();
250 [MonoTODO("Not implemented")]
251 public bool HaveConsent (bool bNeedFullConsent, bool bNeedBirthdate)
253 throw new NotImplementedException ();
256 public int LoginUser ()
258 return LoginUser (null, -1, -1, null, -1, null, -1, -1, null);
262 public int LoginUser (String strReturnUrl)
264 return LoginUser (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
268 public int LoginUser (string szRetURL,
271 string szCOBrandArgs,
278 return LoginUser (szRetURL, iTimeWindow, (fForceLogin ? 1 : 0), szCOBrandArgs, iLangID, strNameSpace, iKPP, (fUseSecureAuth ? 1 : 0), null);
281 [MonoTODO("Not implemented")]
282 public int LoginUser (string szRetURL,
285 string szCOBrandArgs,
292 throw new NotImplementedException ();
295 public string LogoTag ()
297 return LogoTag (null, -1, -1, null, -1, -1, null, -1, -1);
301 public string LogoTag (String strReturnUrl)
303 return LogoTag (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
307 public string LogoTag (string strReturnUrl,
310 string strCoBrandedArgs,
317 return LogoTag (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
320 [MonoTODO("Not implemented")]
321 public string LogoTag (string strReturnUrl,
324 string strCoBrandedArgs,
331 throw new NotImplementedException ();
334 public string LogoTag2 ()
336 return LogoTag2 (null, -1, -1, null, -1, -1, null, -1, -1);
340 public string LogoTag2 (String strReturnUrl)
342 return LogoTag2 (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
346 public string LogoTag2 (string strReturnUrl,
349 string strCoBrandedArgs,
356 return LogoTag2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
359 [MonoTODO("Not implemented")]
360 public string LogoTag2 (string strReturnUrl,
363 string strCoBrandedArgs,
370 throw new NotImplementedException ();
373 public string LogoutURL ()
375 return LogoutURL (null, null, -1, null, -1);
378 [MonoTODO("Not implemented")]
379 public string LogoutURL (string szReturnURL,
380 string szCOBrandArgs,
385 throw new NotImplementedException ();
388 [MonoTODO("Not implemented")]
389 public void SetOption (string strOpt, object vOpt)
391 throw new NotImplementedException ();
394 [MonoTODO("Not implemented")]
395 public static void SignOut (string strSignOutDotGifFileName)
397 throw new NotImplementedException ();
400 [MonoTODO("Not implemented")]
401 public object Ticket (string strAttribute)
403 throw new NotImplementedException ();
406 [MonoTODO("Not implemented")]
407 public string AuthenticationType
410 throw new NotImplementedException ();
414 [MonoTODO("Not implemented")]
418 throw new NotImplementedException ();
422 [MonoTODO("Not implemented")]
423 public bool GetFromNetworkServer
426 throw new NotImplementedException ();
430 [MonoTODO("Not implemented")]
431 public bool HasSavedPassword
434 throw new NotImplementedException ();
438 [MonoTODO("Not implemented")]
439 public bool HasTicket
442 throw new NotImplementedException ();
446 [MonoTODO("Not implemented")]
447 public string HexPUID
450 throw new NotImplementedException ();
454 [MonoTODO("Not implemented")]
455 public bool IsAuthenticated
458 throw new NotImplementedException ();
462 [MonoTODO("Not implemented")]
463 public string this [string strProfileName]
466 throw new NotImplementedException ();
470 [MonoTODO("Not implemented")]
474 throw new NotImplementedException ();
478 [MonoTODO("Not implemented")]
482 throw new NotImplementedException ();
486 [MonoTODO("Not implemented")]
487 public int TimeSinceSignIn
490 throw new NotImplementedException ();
495 void IDisposable.Dispose ()