source: VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/pages/DummyLoginPage.java @ 5472

Last change on this file since 5472 was 5472, checked in by Twan Goosen, 10 years ago

aai: getting display name from a shibboleth authprincipal, fixed the login link; removed the deprecated auth filter and strategies

File size: 796 bytes
Line 
1package eu.clarin.cmdi.virtualcollectionregistry.gui.pages;
2
3import org.apache.wicket.PageReference;
4import org.apache.wicket.RestartResponseAtInterceptPageException;
5import org.apache.wicket.authorization.strategies.role.Roles;
6import org.apache.wicket.authorization.strategies.role.annotations.AuthorizeInstantiation;
7
8/**
9 * Only serves as a target for the 'login' link of the
10 * {@link AuthenticationStatePanel}
11 *
12 * @author twagoo
13 */
14@AuthorizeInstantiation(Roles.USER)
15public class DummyLoginPage extends BasePage {
16
17    private final PageReference pageRef;
18
19    public DummyLoginPage(PageReference pageRef) {
20        this.pageRef = pageRef;
21    }
22
23    @Override
24    protected void onBeforeRender() {
25        throw new RestartResponseAtInterceptPageException(pageRef.getPage());
26    }
27
28}
Note: See TracBrowser for help on using the repository browser.