More in this section

Forums / Developing with Sitefinity / Custom membership provider broken after upgrade from 4.2 to 4.4

Custom membership provider broken after upgrade from 4.2 to 4.4

3 posts, 0 answered
  1. Erik
    Erik avatar
    10 posts
    Registered:
    01 Nov 2011
    27 Jan 2012
    Link to this post
    Our custom membership provider doesnt work after upgrading to 4.4.

    The provider is initialized by sitefinity but the ValidateUser method is never invoked when using 'Telerik.Sitefinity.Security.SecurityManager.AuthenticateUser'.

    Instead it goes straight to GetUsers (which does return a list of valid Sitefinity Users) and returns a 'UserLoggingReason.Unknown'
  2. Erik
    Erik avatar
    10 posts
    Registered:
    01 Nov 2011
    27 Jan 2012
    Link to this post
    Fixed by feeding the ValidateUser method a Sitefinity User instead of a username string.

    http://www.sitefinity.com/devnet/forums/sitefinity-4-x/developing-with-sitefinity/sitefinity-4-3-broke-custom-membershipprovider.aspx 

    The post was made in November of last year. In the post you mention that you forgot to include the changes in the change logs. It still isnt included!
    This cost us 2 days!
  3. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    31 Jan 2012
    Link to this post
    Hi Erik,

    I am sorry that this caused so much trouble. I suppose your custom provider doesn't have a GetUser() method implemented? We changed a bit the logic of the ValidateUser security method - it first calls GetUser() and if there isn't such a method or it returns null then the logic assumes that the validation fails. That's why you need to implement such method to return a valid User object.

    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
3 posts, 0 answered