MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Home page  (Mono Support )

Viewed 6799 time(s), 11 post(s) 4/26/2013 7:24:28 AMby mrudul
mrudul

mrudul

4/26/2013 7:24:28 AM
Hi

How do I direct all users in a specific role to a specific page after login authentication is complete.  Login can be either Facebook Login or in build login module.

Each role will have separate authenticated home pages.  

Help is appreciated

This content has not been rated yet. 
103 Reputation 12 Total posts
iruzak

iruzak

4/26/2013 1:58:30 PM
Hi Mrudul,

you could override method RedirectAfterLogin and implement your functionality there.
This content has not been rated yet. 
443 Reputation 50 Total posts
mrudul

mrudul

4/26/2013 8:38:42 PM
thanks for the reply.  I will try you recommendation.    I see that method in LoginModule class, but not in LoginSocial class.


This content has not been rated yet. 
103 Reputation 12 Total posts
mrudul

mrudul

4/27/2013 4:12:42 AM
Disregard my previous comment about missing event in LoginSocial class.  i found the RedirectAfterLogin in loginsocial.
If we override the RedirectAfterLogin , it will move the the page requested in method, but  next page does look like recoginize as authenciated.   It continue to show login button.

 public override void RedirectAfterLogin()
        {            
           // base.RedirectAfterLogin();
            string DestinationPageUrl = "/MonoX/Pages/SocialNetworking/Discussion.aspx";
            Response.Redirect(DestinationPageUrl);
        }

Denis had a comment about doing this different way.  support post    Even that doesn't see to be working properly.
This content has not been rated yet. 
103 Reputation 12 Total posts
mrudul

mrudul

4/29/2013 9:42:59 PM
Any in the group got a different idea of doing this. or a way to fix this
This content has not been rated yet. 
103 Reputation 12 Total posts
khorvat

khorvat

4/30/2013 12:30:43 PM
Can you please try the following

public override void RedirectAfterLogin()
{  
           DestinationPageUrl = "/MonoX/Pages/SocialNetworking/Discussion.aspx";        
           base.RedirectAfterLogin();
}
Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
mrudul

mrudul

5/1/2013 1:14:01 AM
Khorvat

No luck.  still have the same issue with your suggest code.   What else can i do

Mrudul

This content has not been rated yet. 
103 Reputation 12 Total posts
khorvat

khorvat

5/2/2013 8:29:42 AM
Can you let me know if you have a RequestUrl query parameter in the URL while requesting / testing the redirect functionality ?

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
mrudul

mrudul

5/2/2013 10:50:23 PM
Hi
My application login page 
http://DOMAIN_NAME/APP_NAME/pages/VFLogin.aspx?ReturnUrl=%2f

Once login I get the URL
http://DOMAIN_NAME/#_=_
This content has not been rated yet. 
103 Reputation 12 Total posts
khorvat

khorvat

5/3/2013 10:56:53 AM
We will test the code above and get back to you.
This content has not been rated yet. 
15993 Reputation 2214 Total posts
1 2