More in this section

Forums / Developing with Sitefinity / Custom membership provider issues

Custom membership provider issues

5 posts, 0 answered
  1. Erik
    Erik avatar
    10 posts
    Registered:
    01 Nov 2011
    14 Nov 2011
    Link to this post
    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
  2. Erik
    Erik avatar
    10 posts
    Registered:
    01 Nov 2011
    14 Nov 2011
    Link to this post
    Fixed. Seems like I was missing some required user attributes.

    @Telerik: Maybe you could implement an error message instead of showing the Loading screen?
  3. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    16 Nov 2011
    Link to this post
    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
  4. Peter
    Peter avatar
    42 posts
    Registered:
    22 Aug 2011
    15 Feb 2012
    Link to this post
    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

  5. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    17 Feb 2012
    Link to this post
    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
5 posts, 0 answered