peter schotman
 New Member Posts:29

 |
04/20/2010 8:48 PM |
|
Hi Peter,
I have an issue with direct links and insufficent permissions. The document can be accessed by reg.users but when one is logged out an clicks the link, the visitor get redirected to the home page instead of the login page.
the main dmx module/page is accessible for anonymous users.
Peter |
|
|
|
|
Peter Donker
 Veteran Member Posts:4536

 |
04/23/2010 3:32 PM |
|
Hi Peter,
Unfortunately DNN does not preserve querystring parameters when it redirects after login. This means the link to the specific document is lost after login. If you need to have this work for logged out users you need to have at least one DMX instance on a public (possibly hidden) page. Note DMX will still check the user's login status once inside DMX. So if the document is not available for All Users, the user still gets redirected to log in.
Peter |
|
|
|
|
peter schotman
 New Member Posts:29

 |
05/03/2010 10:45 AM |
|
The problem is that the anonymous user does not get redirected to the login page, he gets re-directed to the home page. I have a public DMX instance on a public page (this one is specified in the settings). Peter |
|
|
|
|
Peter Donker
 Veteran Member Posts:4536

 |
05/06/2010 1:33 PM |
|
Hi Peter,
Which DNN version is that? The protected resource should ultimately respond with a "NOT AUTHORIZED" (you should be able to see this in Fiddler). That *should* trigger DNN to go to a login screen.
Peter |
|
|
|
|
Jason Scott
 New Member Posts:46

 |
05/11/2010 6:56 PM |
|
I struggled with similar problems, and found that it was due to my setup of DNN. I use a third party AD Authentication module, and there were two DNN screens I had to modify to get it to work. First, go to Admin>Site Settings and ensure that your default login page is indeed pointed to the login provider you intend to you.
Next, go to Admin>User Accounts, then click "User Settings). (This is on a DNN 4.8.4 install, BTW.) There is a "Redirect After Login" drop-down box. By default, this is often set to "Home", and will prevent querystring redirection from working. By setting this to blank, the querystring redirection started working for us, and after login, users were taken to the correct page.
I hope this helps in your case as well. |
|
|
|
|
peter schotman
 New Member Posts:29

 |
05/19/2010 10:28 AM |
|
Thanks for your help Jason,
but unfortunately this does not work in my specific configuration, I use datasprings dynamic login. The redirect url does not get fired, I am not sure whether this is a datasprings issue or a DNN 5.2.3. issue. when I do not specify a login page, everything works as expected, so that is the good news.
Peter |
|
|
|
|
peter schotman
 New Member Posts:29

 |
05/20/2010 11:55 AM |
|
I still have an issue with redirecting, by reverting back to the standaard dnn login functionality we now end up with an empty 'admin' page, while the pdf document is being shown in the seperate window. The url looks like this: http://mydomain.com/login...PortalId=0&TabId=603Client expects the redirecting page to be shown... Peter |
|
|
|
|
Peter Donker
 Veteran Member Posts:4536

 |
05/31/2010 2:43 PM |
|
Hi Peter,
It's not a DMX issue but a DNN/Auth issue. Whatever does the authentication should intercept the call and do the redirect after login. DMX code is not running at that time and can't intervene.
One possible alternative worth exploring is to see if we can make a url that would behave correctly. But this would need to come from your code where you're constructing the direct url. Then you can test for login status and output different urls.
Peter |
|
|
|
|