Revision 2dfdda3f src/gr/grnet/pithos/web/client/Pithos.java
b/src/gr/grnet/pithos/web/client/Pithos.java | ||
---|---|---|
110 | 110 |
public static final String HOME_CONTAINER = "pithos"; |
111 | 111 |
|
112 | 112 |
public static final String TRASH_CONTAINER = "trash"; |
113 |
|
|
114 |
public static final Configuration config = GWT.create(Configuration.class); |
|
113 | 115 |
|
114 | 116 |
/** |
115 | 117 |
* Instantiate an application-level image bundle. This object will provide |
... | ... | |
583 | 585 |
* Redirect the user to the login page for authentication. |
584 | 586 |
*/ |
585 | 587 |
protected void authenticateUser() { |
586 |
Window.Location.assign("/im/login");
|
|
588 |
Window.Location.assign(config.loginUrl());
|
|
587 | 589 |
} |
588 | 590 |
|
589 | 591 |
protected void fetchAccount(final Command callback) { |
... | ... | |
1185 | 1187 |
} |
1186 | 1188 |
|
1187 | 1189 |
public void logoff() { |
1188 |
Configuration conf = (Configuration) GWT.create(Configuration.class); |
|
1189 |
Cookies.removeCookie(conf.authCookie(), "/"); |
|
1190 |
Cookies.removeCookie(conf.authTokenCookie(), "/"); |
|
1190 |
Cookies.removeCookie(config.authCookie(), "/"); |
|
1191 |
Cookies.removeCookie(config.authTokenCookie(), "/"); |
|
1191 | 1192 |
for (String s: Cookies.getCookieNames()) |
1192 |
if (s.startsWith(conf.shibSessionCookiePrefix())) |
|
1193 |
if (s.startsWith(config.shibSessionCookiePrefix()))
|
|
1193 | 1194 |
Cookies.removeCookie(s, "/"); |
1194 |
Window.Location.assign("/im/logout");
|
|
1195 |
Window.Location.assign(config.logoutUrl());
|
|
1195 | 1196 |
} |
1196 | 1197 |
|
1197 | 1198 |
public String getErrorData() { |
Also available in: Unified diff