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
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.
Just to clearify, you don't authenticate the user/request in your provider. Authenticate your user in the login page, http module or elsewhere.