Mono Support Home page 

Viewed 17577 time(s), 11 post(s), 4/26/2013 7:24:28 AM - by mrudul
4/26/2013 7:24:28 AM
103 Reputation 12 Total posts

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

1
4/26/2013 1:58:30 PM
443 Reputation 50 Total posts

Hi Mrudul,

you could override method RedirectAfterLogin and implement your functionality there.

2
4/26/2013 8:38:42 PM
103 Reputation 12 Total posts

thanks for the reply.  I will try you recommendation.    I see that method in LoginModule class, but not in LoginSocial class.


3
4/27/2013 4:12:42 AM
103 Reputation 12 Total posts

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.

4
4/29/2013 9:42:59 PM
103 Reputation 12 Total posts

Any in the group got a different idea of doing this. or a way to fix this

5
4/30/2013 12:30:43 PM
15993 Reputation 2214 Total posts

Can you please try the following

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

6
5/1/2013 1:14:01 AM
103 Reputation 12 Total posts

Khorvat

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

Mrudul

7
5/2/2013 8:29:42 AM
15993 Reputation 2214 Total posts

Can you let me know if you have a RequestUrl query parameter in the URL while requesting / testing the redirect functionality ?

Regards

8
5/2/2013 10:50:23 PM
103 Reputation 12 Total posts

Hi
My application login page 
http://DOMAIN_NAME/APP_NAME/pages/VFLogin.aspx?ReturnUrl=%2f

Once login I get the URL
http://DOMAIN_NAME/#_=_

9
5/3/2013 10:56:53 AM
15993 Reputation 2214 Total posts

We will test the code above and get back to you.

10
1 2
This is a demo site for MonoX. Please visit Mono Software for more info.