How easily could the "access is denied" for logged in browsers be changed so that it just does a redirect?

Comments

hotspoons’s picture

Status: Active » Needs work

Could you provide more information? Are you referring to visiting /user/login/sso after already being authenticated and logged into Drupal? The main issue with that path is that to make it operate as a dynamic menu item (it should install a menu item in the Navigation menu), it needs to have access tied to if a user is authenticated or not. The login link from this module should disappear once a user is authenticated, so unless a user is bookmarking and visiting the /user/login/sso path, it should only appear when a user is not authenticated.

I suppose a more robust access callback could be written for the menu item to perform a redirection instead of access is denied when accessing the link after logged in, but it complicates things.

Let me know exactly your issue and I'll try to accommodate. Thanks.

hotspoons’s picture

Status: Needs work » Closed (cannot reproduce)

No response in 6 months. Closing.

alexanderrozenson’s picture

Status: Closed (cannot reproduce) » Needs review

Say, I want to use the module for only one specific content-type and especially node/add/[specialtype] page,
Would I be able to configure a vhost on my apache so that only special alias will use NTLM credentials?
I guess I can do that but what about users(editors) which are already logged in to my wikiportal? I think they will get Access denied - instead I want to redirect them to node/add/[specialtype]... And yes I must use user/login/sso :-( and also change drupal_goto('home'); to whatever I need.

Thank ahead,
Sasha

alexanderrozenson’s picture

I can do the same with rules of course, for example:
create a page with fancy url alias
triger a rule to check for anonymous role,
if true => redirect to sso login,
false => redirect to node/add/[some-type]
and change only the drupal_goto('home'); row but it would be great to have such thing on the settings page

grahl’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

The use case with user-specified routes is better supported with user groups plus rules and/or custom code. Closing this issue.

naidim’s picture

Sorry, right issue, wrong version.