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 17454 time(s), 11 post(s) 26.04.2013 07:24:28by mrudul
mrudul

mrudul

26.04.2013 07:24:28
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

Dieser Inhalt wurde noch nicht bewertet. 
103 Reputation 12 Total posts
iruzak

iruzak

26.04.2013 13:58:30
Hi Mrudul,

you could override method RedirectAfterLogin and implement your functionality there.
Dieser Inhalt wurde noch nicht bewertet. 
443 Reputation 50 Total posts
mrudul

mrudul

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


Dieser Inhalt wurde noch nicht bewertet. 
103 Reputation 12 Total posts
mrudul

mrudul

27.04.2013 04:12:42
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.
Dieser Inhalt wurde noch nicht bewertet. 
103 Reputation 12 Total posts
mrudul

mrudul

29.04.2013 21:42:59
Any in the group got a different idea of doing this. or a way to fix this
Dieser Inhalt wurde noch nicht bewertet. 
103 Reputation 12 Total posts
khorvat

khorvat

30.04.2013 12:30:43
Can you please try the following

public override void RedirectAfterLogin()
{  
           DestinationPageUrl = "/MonoX/Pages/SocialNetworking/Discussion.aspx";        
           base.RedirectAfterLogin();
}
Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
mrudul

mrudul

01.05.2013 01:14:01
Khorvat

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

Mrudul

Dieser Inhalt wurde noch nicht bewertet. 
103 Reputation 12 Total posts
khorvat

khorvat

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

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
mrudul

mrudul

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

Once login I get the URL
http://DOMAIN_NAME/#_=_
Dieser Inhalt wurde noch nicht bewertet. 
103 Reputation 12 Total posts
khorvat

khorvat

03.05.2013 10:56:53
We will test the code above and get back to you.
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
1 2