Support

Kom i kontakt med vår kundtjänst, lär dig allt via vår SDK eller ladda ner den senaste uppdateringen.

Use a custom membership provider

2011-06-13 14:05:49 Fredrik Heidgert

I was wondering whether it is possible to change the MindrouteSqlProvider into our own Membership provider? I would like to use another data store for our users (we already have a separate CRM database) and be able to set specific permissions for these users to certain locations on the site.

How would one go about doing this? Are there any specific considerations we need to take into account?

All replies

  • 2011-06-14 09:14:20 Fredrik Heidgert

    I wrote my own provider and noticed that there was some logic going on which stored the user together with ApplicationName, ProviderName and ProviderUserKey in the User table in the Lemoon database.

    This make it seem like there is some kind of support for using your own membership provider, however I don't know how to implement it correctly since there is no way to log in with my user in my own provider as he doesn't have access to the admin interface.

  • 2011-07-23 12:52:05 Linus Birgerstam

    Lemoon fully supports the Membership API. You can implement your own provider or use one of the standard providers, e.g. SqlMembershipProvider or ActiveDirectoryMembershipProvider.

    If your provider is implemented correctly and you have configured Lemoon to use your provider you should be able to login via the admin interface. If Lemoon detects that no admin user exists for the configured provider, the first user to login should be promoted to administrator. If that doesn't work you could try setting the IsAdmin property to True in the User table.