Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, February 22, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Login a Portal User by code
Claudia
Posts: 23
 
Login a Portal User by codeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 08 2:16 PM
Hi guys,

I'm developing a stand-alone page that has to be opened without going through the login page.
I need to login a default user using code. Does anyone know how to accomplish that?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Login a Portal User by codeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 08 2:21 PM
I have posted that here: http://customerfx.com/pages/crmdeveloper/2007/12/14/passing-customer-portal-credentials-to-the-saleslogix-customer-portal-without-logging-in.aspx

-Ryan
[Reply][Quote]
Claudia
Posts: 23
 
Re: Login a Portal User by codeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 08 6:30 PM
The FormsAuthentication.RedirectFromLoginPage(customer, false) method logs in the user,
but it also redirects to the page specified in the webconfig's authentication attribute defaultUrl="default.aspx",
that is not letting to open my custom page and I can't change the defaultUrl.

Is there another way to login the user without using the RedirectFromLoginPage method?
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Login a Portal User by codeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 08 6:32 PM
I'm not sure what you mean. Could you describe in more detail what you're trying to do?
[Reply][Quote]
Claudia
Posts: 23
 
Re: Login a Portal User by codeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Apr 08 11:01 AM
What I have to do is a page that can be accessed without loging in the portal.
It should be opened just writing the url in the iexplorer like this
http://localhost/SLXCustomerPortal/AnonymousDevices.aspx
Only open that page not the login page nor the Portal's default page.
I configured the web.config of the portal to give all users access to the AnonymousDevices page,
adding this code.
location path="AnonymousDevices.aspx">
system.web>
authorization>
allow users="*" />
/authorization>
/system.web>
/location>
The AnonymousDevices form must create a Ticket. I encountered and issue that doesn't allow to create a ticket if there is no user logged in the portal. So what I need to do is to log the user in from the AnonymousDevices page when its PageLoad event is fired.
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/22/2025 4:12:05 PM