This topic is locked

Direct Login Link Possible?

6/7/2012 12:07:02
ASPRunnerPro General questions
F
fabiocpa author

We have a ASPRunnerPro created site with a login page, SQL backend. We have some users that we would like to redirect from another webpage and have their username and password embedded in the link so it bypasses the usual login page on the ASPrunner site and takes them directly to the list page. Is this possible? Thanks.

Sergey Kornilov admin 6/7/2012

This is possible however not really recommended for security purposes. Passing username/password in plain text via URL may reveal your passwords to a third party. More reliable option is to use Active Directory security for instance.
If you still decide to proceed with this option implement AfterAppInit event. In this event check if username/password are passed via URL (Request.QueryString("username") will be populated), run SQL Query to check if username and password are correct and log user in manually populating security related session variables.
More on session variables that need to be populated after the login:

http://xlinesoft.com/asprunnerpro/docs/implementing_single_sign_on_feature.htm