Hi,

I just want to know if a user is not logged in, how can I auto redirect to the CAS server.(without showing the drupal login page).

will this setup allows admin to login saperately..? how can we do this..?

Comments

metzlerd’s picture

Look at the redirection settings. Require login for specific pages should do what you're asking.

madhusudan’s picture

In redirection settings i added ' * ' in Require login for specific pages, this works, but drupal logout will not work. if we click logout it stays in same page. i have to close browser or clear cache.. and even though admin not able to login, it always redirect to CAS server..

well,
i found alternate method, by editing client.php in PHP CAS module, which alows admin also to login.

by commenting the following

$this->_server['login_url'] .= '&gateway=true';

if the gateway=true is appended to the end of the link, then it will come back to drupal site. i commented the above and now its directly going to CAS server.

:-)

metzlerd’s picture

Unneccesary. I didn't understand quite what you were trying to do. You could've got the same page by "check for existing login" in the cas settings page .

Also note that you can enable the cas Login menu as well.

bfroehle’s picture

Status: Active » Closed (works as designed)

I think this issue was resolved by the comments in #1. If not, feel free to reopen.