Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Lib/HLServiceMembershipProvider.cs @ 5974

Last change on this file since 5974 was 5800, checked in by dkahn, 14 years ago

#1447 Removed username from session as it can be fetched by identity.

File size: 4.2 KB
RevLine 
[5800]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Web;
5
6namespace HLWebPluginHost.Lib {
7  public class HLServiceMembershipProvider : System.Web.Security.MembershipProvider {
8    public override string ApplicationName {
9      get {
10        throw new NotImplementedException();
11      }
12      set {
13        throw new NotImplementedException();
14      }
15    }
16
17    public override bool ChangePassword(string username, string oldPassword, string newPassword) {
18      throw new NotImplementedException();
19    }
20
21    public override bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer) {
22      throw new NotImplementedException();
23    }
24
25    public override System.Web.Security.MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out System.Web.Security.MembershipCreateStatus status) {
26      throw new NotImplementedException();
27    }
28
29    public override bool DeleteUser(string username, bool deleteAllRelatedData) {
30      throw new NotImplementedException();
31    }
32
33    public override bool EnablePasswordReset {
34      get { throw new NotImplementedException(); }
35    }
36
37    public override bool EnablePasswordRetrieval {
38      get { throw new NotImplementedException(); }
39    }
40
41    public override System.Web.Security.MembershipUserCollection FindUsersByEmail(string emailToMatch, int pageIndex, int pageSize, out int totalRecords) {
42      throw new NotImplementedException();
43    }
44
45    public override System.Web.Security.MembershipUserCollection FindUsersByName(string usernameToMatch, int pageIndex, int pageSize, out int totalRecords) {
46      throw new NotImplementedException();
47    }
48
49    public override System.Web.Security.MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords) {
50      throw new NotImplementedException();
51    }
52
53    public override int GetNumberOfUsersOnline() {
54      throw new NotImplementedException();
55    }
56
57    public override string GetPassword(string username, string answer) {
58      throw new NotImplementedException();
59    }
60
61    public override System.Web.Security.MembershipUser GetUser(string username, bool userIsOnline) {
62      throw new NotImplementedException();
63    }
64
65    public override System.Web.Security.MembershipUser GetUser(object providerUserKey, bool userIsOnline) {
66      throw new NotImplementedException();
67    }
68
69    public override string GetUserNameByEmail(string email) {
70      throw new NotImplementedException();
71    }
72
73    public override int MaxInvalidPasswordAttempts {
74      get { throw new NotImplementedException(); }
75    }
76
77    public override int MinRequiredNonAlphanumericCharacters {
78      get { throw new NotImplementedException(); }
79    }
80
81    public override int MinRequiredPasswordLength {
82      get { throw new NotImplementedException(); }
83    }
84
85    public override int PasswordAttemptWindow {
86      get { throw new NotImplementedException(); }
87    }
88
89    public override System.Web.Security.MembershipPasswordFormat PasswordFormat {
90      get { throw new NotImplementedException(); }
91    }
92
93    public override string PasswordStrengthRegularExpression {
94      get { throw new NotImplementedException(); }
95    }
96
97    public override bool RequiresQuestionAndAnswer {
98      get { throw new NotImplementedException(); }
99    }
100
101    public override bool RequiresUniqueEmail {
102      get { throw new NotImplementedException(); }
103    }
104
105    public override string ResetPassword(string username, string answer) {
106      throw new NotImplementedException();
107    }
108
109    public override bool UnlockUser(string userName) {
110      throw new NotImplementedException();
111    }
112
113    public override void UpdateUser(System.Web.Security.MembershipUser user) {
114      throw new NotImplementedException();
115    }
116
117    public override bool ValidateUser(string username, string password) {
118      // Return just true for now as the OKB application works exactly like that
119      // TODO: Add authentication against the HL-Service as soon as it's available.
120      try {
121        HttpContext.Current.Session["Password"] = password;
122        return true;
123      } catch (Exception) {
124        return false;
125      }
126    }
127  }
[5798]128}
Note: See TracBrowser for help on using the repository browser.