Examples of ExplorationAuthenticator


Examples of org.apache.isis.runtimes.dflt.runtime.authentication.exploration.ExplorationAuthenticator

            {
                allowing(mockConfiguration).getString(ExplorationAuthenticatorConstants.NAKEDOBJECTS_USERS);
                will(returnValue("fred, sven:admin|sales|marketing, bob:sales, dick"));
            }
        });
        authenticator = new ExplorationAuthenticator(mockConfiguration);
        this.session =
            (MultiUserExplorationSession) authenticator.authenticate(new AuthenticationRequestExploration(), "");

        final Set<String> availableSessions = session.getUserNames();
        Assert.assertEquals(4, availableSessions.size());
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.authentication.exploration.ExplorationAuthenticator

            {
                allowing(mockConfiguration).getString(ExplorationAuthenticatorConstants.NAKEDOBJECTS_USERS);
                will(returnValue("fred, sven:admin|sales|marketing, bob:sales, dick"));
            }
        });
        authenticator = new ExplorationAuthenticator(mockConfiguration);
        this.session =
            (MultiUserExplorationSession) authenticator.authenticate(new AuthenticationRequestExploration(), "");

        session.setCurrentSession("bob");
        Assert.assertEquals("bob", session.getUserName());
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.authentication.exploration.ExplorationAuthenticator

            {
                allowing(mockConfiguration).getString(ExplorationAuthenticatorConstants.NAKEDOBJECTS_USERS);
                will(returnValue("fred, sven:admin|sales|marketing, bob:sales, dick"));
            }
        });
        authenticator = new ExplorationAuthenticator(mockConfiguration);
        this.session =
            (MultiUserExplorationSession) authenticator.authenticate(new AuthenticationRequestExploration(), "");

        session.setCurrentSession("sven");
        final List<String> roles = session.getRoles();
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.authentication.exploration.ExplorationAuthenticator

        });

        explorationRequest = new AuthenticationRequestExploration();
        someOtherRequest = new SomeOtherAuthenticationRequest();

        authenticator = new ExplorationAuthenticator(mockConfiguration);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.