Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

extranet users, negative sids, custom providers

Vote:
 
extranet users, negative sids, custom providers.... I cant find a thing on these forums about this. I recently got some example code from EPiServer because we want to have extranet users that can login to episerver without storing their usernames but by authenticating via a 3rd party database and system. The code I got looks like this: public class MyCustomSidProvider : SidProvider public class MyPersonalizedDataProvider : PersonalizedDataProvider The idea is to override the loading of the Sid creation code. What im looking for is anyone who has done this and got it to work? I cant find the SidProvider so the example code wont compile. Thats my first problem - while I go hunt for it, lets hope this reaches someone whos been here before. At least there will be results for someone who types those keywords in the future! I hate getting 0 results! /John
#13070
Jun 14, 2007 10:16
Vote:
 
Hi John! Custom SidProviders/PersonalizedDataProvider were introduced in EPiServer 4.61 Hotfix 1. Download and apply the latest hotfix (www.episerver.com/en/EPiServer_Knowledge_Center/Download2/Hotfixes/EPiServer-461---Hotfix-5/) and you should be fine. Regards, Johan Olofsson EPiServer AB
#15350
Jun 14, 2007 11:08
Vote:
 
Thanks Johan! That explains why I couldnt find it in the object library! I will get the latest hotfix and keep this thread updated with my progress. /John
#15351
Jun 14, 2007 11:31
Vote:
 
There is a mismatch what should be put in the web.config vs the name of the class public class MyPersonalizedDataProvider : PersonalizedDataProvider should be public class MyCustomPersonalizedDataProvider: PersonalizedDataProvider Despite fixing this i still get an error, any clues ?: Parser Error Message: An error occurred creating the configuration section handler for episerver/personalizedDataProvider: Object reference not set to an instance of an object. Source Error: Line 42: Line 43: Line 44: Line 45: Line 46:
#15352
Jun 14, 2007 14:34
Vote:
 
Youre right, the class should be named MyCustomPersonalizedDataProvider. My bad. The web.config should, with that modification, look like something like this: (the ... below are placeholders for any other sections that might appear in your web.config, they should of course not be entered) ...
... ... ... /johan
#15353
Jun 14, 2007 15:04
Vote:
 
Thanks Johan - my web.config looks exactly like that and the example code I got hasnt been changed except for the class name. Is there anything I need to modify for it to work or is this error to do with the configuration? /John
#15354
Jun 14, 2007 15:34
Vote:
 
No, that *should* work. Could you send me your web.config by email and I'll have a look? Thanks, Johan joahn.olofsson @ episerver.com
#15355
Jun 14, 2007 15:36
Vote:
 
Was an error in the web.config sample above, with a missing 'i' in the sampleSidProvider assemblyname: ^ should read: Sorry for any inconveniences! Regards, johan
#15356
Jun 14, 2007 15:52
Vote:
 
Johan pointed out the missing "i" in sampleSidProvider /John
#15357
Jun 14, 2007 15:53
Vote:
 
Im still getting the same error, only this time after i type the username + password before it wouldnt even bring up the login page /John
#15358
Jun 14, 2007 16:00
Vote:
 
FYI: i added a 2 to each section name and the problem went away - very odd.
Dont ask me why, but it works enough that I can keep going and worry about it later. /John
#15359
Jun 15, 2007 13:06
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.