Try our conversational search powered by Generative AI!

Customise login using only an ID



I want to customise the login process in the AlloyTech sample

Instead of a given login & password, i want to authenticate user using a gotten ID wich exists in the url (..../login.aspx?ID=xxx)

to do that, i've implemented a custom membership provider and a role provider

i configured the sample to use my custom membership and role provider in the web.config and the sample does use thease providers, i know it because i checked it using a known login & pwd wich configured in the custom membership provider

the problem is that :

1- i can't get the ID from the url inside my custom provider

2- i don't know where to call my custom method : public bool ValidateUser(string ID) , i think that this should be done inside the login.login method (at least that's what is mentioned in the login.aspx code) but i don't know where this method exist; i could't find it !

And thanks to tell me if i am messing anything else here or any other step to do


Feb 09, 2012 11:06


You can change the login url in web.config and point to your own login page. In your custom login page you can check the querystring.

Or even better, create a http module and authenticate the user there.

Feb 09, 2012 12:43

Just to clearify, you don't authenticate the user/request in your provider. Authenticate your user in the login page, http module or elsewhere.

Feb 09, 2012 12:47
Do not use ID as a query param name. It is used internally bu EPiServer and will not work in your code. Try renaming it to something else and see if your code works :)
Feb 15, 2012 6:55
* 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.