Package org.apache.wicket.security.app.authentication

Examples of org.apache.wicket.security.app.authentication.ApplicationLoginContext


      String token = parameters.getString("token");

      YahooResponse authenticateUser =
        YahooBBAuth.authenticateUser(appId, secret, uri, appdata, ts, requestsig, token);
      // TODO identify user and log in
      ((WaspSession) Session.get()).login(new ApplicationLoginContext("foo", "bar"));
      ((MySession) Session.get()).setUsername("foo");
      if (!continueToOriginalDestination())
        setResponsePage(((WicketApplication) Application.get()).getHomePage());
    }
    catch (Exception e)
View Full Code Here


       * @see org.apache.wicket.markup.html.link.Link#onClick()
       */
      @Override
      public void onClick()
      {
        if (((WaspSession) Session.get()).logoff(new ApplicationLoginContext()))
          setResponsePage(((WaspApplication) Application.get()).getLoginPage());
        else
          error(getLocalizer().getString("exception.logoff", this));

      }
View Full Code Here

TOP

Related Classes of org.apache.wicket.security.app.authentication.ApplicationLoginContext

Copyright © 2018 www.massapicom. 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.