Custom membership provider issues

Posted by Community Admin on 04-Aug-2018 12:18

Custom membership provider issues

All Replies

Posted by Community Admin on 14-Nov-2011 00:00

Hi,

I'm having some difficulties with a custom membership provider.
The provider is registered and is calling the GetUsers method. The method is returning a list of users but the frontend admin page is stuck on "Loading...". No error message is displayed.

Here's an example of a returned user:
- [0] User "10000", Id=ad48901f-2efe-4010-b669-6c3da9881fc7, Provider="eHotelMembershipProvider" Telerik.Sitefinity.Security.Model.User
+ base User "10000", Id=ad48901f-2efe-4010-b669-6c3da9881fc7, Provider="eHotelMembershipProvider" System.Web.Security.MembershipUser Telerik.Sitefinity.Security.Model.User
ApplicationName null string
Comment null string
+ CreationDate 1-1-0001 0:00:00 System.DateTime
Email null string
FailedPasswordAnswerAttemptCount 0 int
+ FailedPasswordAnswerAttemptWindowStart 1-1-0001 0:00:00 System.DateTime
FailedPasswordAttemptCount 0 int
+ FailedPasswordAttemptWindowStart 1-1-0001 0:00:00 System.DateTime
FirstName null string
+ Id ad48901f-2efe-4010-b669-6c3da9881fc7 System.Guid
IsApproved true bool
IsBackendUser false bool
IsLockedOut false bool
IsLoggedIn false bool
+ ItemState Telerik.Sitefinity.ChangeTracking.ItemState Telerik.Sitefinity.ChangeTracking.ItemState
+ LastActivityDate 1-1-0001 0:00:00 System.DateTime
+ LastLockoutDate 1-1-0001 0:00:00 System.DateTime
+ LastLoginDate 1-1-0001 0:00:00 System.DateTime
LastLoginIp null string
+ LastModified 1-1-0001 0:00:00 System.DateTime
LastName null string
+ LastPasswordChangedDate 1-1-0001 0:00:00 System.DateTime
+ ManagerInfo Telerik.Sitefinity.Model.ManagerInfo Telerik.Sitefinity.Model.ManagerInfo
Password "Baxc5y5QCPcxET16PWckOQ==" string
PasswordAnswer null string
PasswordFormat 0 int
PasswordQuestion null string
ProviderName "eHotelMembershipProvider" string
+ ProviderUserKey ad48901f-2efe-4010-b669-6c3da9881fc7 object System.Guid
Salt null string
UserName "10000" string

Any suggestions?

Regards,

Erik

Posted by Community Admin on 14-Nov-2011 00:00

Fixed. Seems like I was missing some required user attributes.

@Telerik: Maybe you could implement an error message instead of showing the Loading screen?

Posted by Community Admin on 16-Nov-2011 00:00

Hello Erik,

What do you mean by frontend admin page - do you mean the page that is displayed when you select Administration -> Users? Basically when the WCF service fails if there is a "Loading" icon it will not hide, it is like this everywhere throughout the Sitefinity backend. We will consider adding more robust error handling in the future. Thank you for your suggestion.

Kind regards,
Lubomir Velkov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 15-Feb-2012 00:00

Hello Lubomir and/or Erik,

I have the same issue ("Custom Membership Provider Users list stuck on Loading...". Can you tell me which user attributes are required?

Regards,
Peter

Posted by Community Admin on 17-Feb-2012 00:00

Hello Peter,

I suppose you need to set proper values for some of the following properties of the User class

LastActivityDate
LastLoginDate
LastModified

and you also need the call the following methods that set get-only properties -

SetCreationDate
SetLastLockoutDate
SetLastPasswordChangedDate

All the best,
Lubomir Velkov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed