Skip to content

Commit 867c49f

Browse files
committed
Addresses Stanford#76 for D7 - anonymous users can't log in if they can't access content
1 parent b69dfda commit 867c49f

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

CHANGELOG.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ by eosrei
77
- Adjusted whitespace use
88
- Corrected coder module warnings
99
- Converted module for use with Drupal 7
10+
by mrmarco
11+
- Updated admin documentation
12+
- Updated LICENSE
13+
- Alter local user login form to indicate it's for local accounts
14+
- #83: Corrected spelling of SUNet ID and Log In
15+
- #82: Allow WMD users to change their email
16+
- #78: Allow theming of login block
17+
- #76: Users can't log in if anonymous users don't have the "access content" permission
18+
- #75: Endless redirects with expired sessions
1019

1120

1221
WebAuth 6.x-3.1 2012-02-09

README.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ Authorizations is where you can decide who can login to your site using
6666
WebAuth. By default it's anyone with a SUNet ID (valid-user) but you can
6767
restrict that further if you want.
6868

69+
-- KNOWN ISSUES --
70+
71+
Because the WebAuth module for Drupal attempts to log people in automatically
72+
if they reach a restricted resource, removing "View Published Content" permissions
73+
from anonymous users may result in users not being able to log out. That's because
74+
upon log out, users are redirected to the home page. If the home page is restricted,
75+
the module will log the users back in again. The current workaround is to quit
76+
the browser to destroy the WebAuth cookie.
77+
6978
-- TROUBLESHOOTING --
7079

7180
If you encounter any issues while using this module at Stanford,

webauth.module

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ function webauth_menu() {
9191

9292
$items[$path] = array(
9393
'page callback' => 'webauth_return',
94-
'access arguments' => array('access content'),
94+
'access callback' => TRUE,
9595
'type' => MENU_CALLBACK,
9696
);
9797

9898
$items['webauth/403'] = array(
9999
'page callback' => 'webauth_error_page',
100-
'access arguments' => array('access content'),
100+
'access callback' => TRUE,
101101
'type' => MENU_CALLBACK,
102102
);
103103

0 commit comments

Comments
 (0)