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 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 public sealed class PassportIdentity : IIdentity, IDisposable {
43 public sealed class PassportIdentity : IIdentity {
45 [SecurityPermission (SecurityAction.Demand, UnmanagedCode = true)]
46 public PassportIdentity ()
54 public string AuthUrl ()
56 return AuthUrl (null, -1, -1, null, -1, null, -1, -1);
60 public string AuthUrl (String strReturnUrl)
62 return AuthUrl (strReturnUrl, -1, -1, null, -1, null, -1, -1);
66 public string AuthUrl (string strReturnUrl,
69 string strCoBrandedArgs,
75 return AuthUrl (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
78 [MonoTODO("Not implemented")]
79 public string AuthUrl (string strReturnUrl,
82 string strCoBrandedArgs,
88 throw new NotImplementedException ();
91 public string AuthUrl2 ()
93 return AuthUrl2 (null, -1, -1, null, -1, null, -1, -1);
97 public string AuthUrl2 (String strReturnUrl)
99 return AuthUrl2 (strReturnUrl, -1, -1, null, -1, null, -1, -1);
103 public string AuthUrl2 (string strReturnUrl,
106 string strCoBrandedArgs,
112 return AuthUrl2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
115 [MonoTODO("Not implemented")]
116 public string AuthUrl2 (string strReturnUrl,
119 string strCoBrandedArgs,
125 throw new NotImplementedException ();
128 [MonoTODO("Not implemented")]
129 public static string Compress (string strData)
131 throw new NotImplementedException ();
134 [MonoTODO("Not implemented")]
135 public static bool CryptIsValid ()
137 throw new NotImplementedException ();
140 [MonoTODO("Not implemented")]
141 public static int CryptPutHost (string strHost)
143 throw new NotImplementedException ();
146 [MonoTODO("Not implemented")]
147 public static int CryptPutSite (string strSite)
149 throw new NotImplementedException ();
152 [MonoTODO("Not implemented")]
153 public static string Decompress (string strData)
155 throw new NotImplementedException ();
158 [MonoTODO("Not implemented")]
159 public static string Decrypt (string strData)
161 throw new NotImplementedException ();
164 [MonoTODO("Not implemented")]
165 public static string Encrypt (string strData)
167 throw new NotImplementedException ();
170 [MonoTODO("Not implemented")]
171 public object GetCurrentConfig (string strAttribute)
173 throw new NotImplementedException ();
176 [MonoTODO("Not implemented")]
177 public string GetDomainAttribute (string strAttribute, int iLCID, string strDomain)
179 throw new NotImplementedException ();
182 [MonoTODO("Not implemented")]
183 public string GetDomainFromMemberName (string strMemberName)
185 throw new NotImplementedException ();
188 public bool GetIsAuthenticated (int iTimeWindow, bool bForceLogin, bool bCheckSecure)
190 return this.GetIsAuthenticated (iTimeWindow, (bForceLogin ? 1 : 0), (bCheckSecure ? 1 : 0));
193 [MonoTODO("Not implemented")]
194 public bool GetIsAuthenticated (int iTimeWindow, int iForceLogin, int iCheckSecure)
196 throw new NotImplementedException ();
199 public string GetLoginChallenge ()
201 return GetLoginChallenge (null, -1, -1, null, -1, null, -1, -1, null);
205 public string GetLoginChallenge (String strReturnUrl)
207 return GetLoginChallenge (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
211 [MonoTODO("Not implemented")]
212 public string GetLoginChallenge (string szRetURL,
215 string szCOBrandArgs,
222 throw new NotImplementedException ();
225 [MonoTODO("Not implemented")]
226 public object GetOption (string strOpt)
228 throw new NotImplementedException ();
231 [MonoTODO("Not implemented")]
232 public object GetProfileObject (string strProfileName)
234 throw new NotImplementedException ();
237 [MonoTODO("Not implemented")]
238 public bool HasFlag (int iFlagMask)
240 throw new NotImplementedException ();
243 [MonoTODO("Not implemented")]
244 public bool HasProfile (string strProfile)
246 throw new NotImplementedException ();
249 [MonoTODO("Not implemented")]
250 public bool HaveConsent (bool bNeedFullConsent, bool bNeedBirthdate)
252 throw new NotImplementedException ();
255 public int LoginUser ()
257 return LoginUser (null, -1, -1, null, -1, null, -1, -1, null);
261 public int LoginUser (String strReturnUrl)
263 return LoginUser (strReturnUrl, -1, -1, null, -1, null, -1, -1, null);
267 public int LoginUser (string szRetURL,
270 string szCOBrandArgs,
277 return LoginUser (szRetURL, iTimeWindow, (fForceLogin ? 1 : 0), szCOBrandArgs, iLangID, strNameSpace, iKPP, (fUseSecureAuth ? 1 : 0), null);
280 [MonoTODO("Not implemented")]
281 public int LoginUser (string szRetURL,
284 string szCOBrandArgs,
291 throw new NotImplementedException ();
294 public string LogoTag ()
296 return LogoTag (null, -1, -1, null, -1, -1, null, -1, -1);
300 public string LogoTag (String strReturnUrl)
302 return LogoTag (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
306 public string LogoTag (string strReturnUrl,
309 string strCoBrandedArgs,
316 return LogoTag (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
319 [MonoTODO("Not implemented")]
320 public string LogoTag (string strReturnUrl,
323 string strCoBrandedArgs,
330 throw new NotImplementedException ();
333 public string LogoTag2 ()
335 return LogoTag2 (null, -1, -1, null, -1, -1, null, -1, -1);
339 public string LogoTag2 (String strReturnUrl)
341 return LogoTag2 (strReturnUrl, -1, -1, null, -1, -1, null, -1, -1);
345 public string LogoTag2 (string strReturnUrl,
348 string strCoBrandedArgs,
355 return LogoTag2 (strReturnUrl, iTimeWindow, (fForceLogin ? 1 : 0), strCoBrandedArgs, iLangID, (fSecure ? 1 : 0), strNameSpace, iKPP, (bUseSecureAuth ? 1 : 0));
358 [MonoTODO("Not implemented")]
359 public string LogoTag2 (string strReturnUrl,
362 string strCoBrandedArgs,
369 throw new NotImplementedException ();
372 public string LogoutURL ()
374 return LogoutURL (null, null, -1, null, -1);
377 [MonoTODO("Not implemented")]
378 public string LogoutURL (string szReturnURL,
379 string szCOBrandArgs,
384 throw new NotImplementedException ();
387 [MonoTODO("Not implemented")]
388 public void SetOption (string strOpt, object vOpt)
390 throw new NotImplementedException ();
393 [MonoTODO("Not implemented")]
394 public static void SignOut (string strSignOutDotGifFileName)
396 throw new NotImplementedException ();
399 [MonoTODO("Not implemented")]
400 public object Ticket (string strAttribute)
402 throw new NotImplementedException ();
405 [MonoTODO("Not implemented")]
406 public string AuthenticationType
409 throw new NotImplementedException ();
413 [MonoTODO("Not implemented")]
417 throw new NotImplementedException ();
421 [MonoTODO("Not implemented")]
422 public bool GetFromNetworkServer
425 throw new NotImplementedException ();
429 [MonoTODO("Not implemented")]
430 public bool HasSavedPassword
433 throw new NotImplementedException ();
437 [MonoTODO("Not implemented")]
438 public bool HasTicket
441 throw new NotImplementedException ();
445 [MonoTODO("Not implemented")]
446 public string HexPUID
449 throw new NotImplementedException ();
453 [MonoTODO("Not implemented")]
454 public bool IsAuthenticated
457 throw new NotImplementedException ();
461 [MonoTODO("Not implemented")]
462 public string this [string strProfileName]
465 throw new NotImplementedException ();
469 [MonoTODO("Not implemented")]
473 throw new NotImplementedException ();
477 [MonoTODO("Not implemented")]
481 throw new NotImplementedException ();
485 [MonoTODO("Not implemented")]
486 public int TimeSinceSignIn
489 throw new NotImplementedException ();
494 void IDisposable.Dispose ()