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 )

17250 put(a) pogledan, 11 odgovor(a) 26.4.2013. 7:24:28Kreirao(la) mrudul
mrudul

mrudul

26.4.2013. 7: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

Ovaj sadržaj još nije ocijenjen. 
103 Reputacija 12 Ukupno objava
iruzak

iruzak

26.4.2013. 13:58:30
Hi Mrudul,

you could override method RedirectAfterLogin and implement your functionality there.
Ovaj sadržaj još nije ocijenjen. 
443 Reputacija 50 Ukupno objava
mrudul

mrudul

26.4.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.


Ovaj sadržaj još nije ocijenjen. 
103 Reputacija 12 Ukupno objava
mrudul

mrudul

27.4.2013. 4: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.
Ovaj sadržaj još nije ocijenjen. 
103 Reputacija 12 Ukupno objava
mrudul

mrudul

29.4.2013. 21:42:59
Any in the group got a different idea of doing this. or a way to fix this
Ovaj sadržaj još nije ocijenjen. 
103 Reputacija 12 Ukupno objava
khorvat

khorvat

30.4.2013. 12:30:43
Can you please try the following

public override void RedirectAfterLogin()
{  
           DestinationPageUrl = "/MonoX/Pages/SocialNetworking/Discussion.aspx";        
           base.RedirectAfterLogin();
}
Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
mrudul

mrudul

1.5.2013. 1:14:01
Khorvat

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

Mrudul

Ovaj sadržaj još nije ocijenjen. 
103 Reputacija 12 Ukupno objava
khorvat

khorvat

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

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
mrudul

mrudul

2.5.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/#_=_
Ovaj sadržaj još nije ocijenjen. 
103 Reputacija 12 Ukupno objava
khorvat

khorvat

3.5.2013. 10:56:53
We will test the code above and get back to you.
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
1 2