Package org.pac4j.core.client

Examples of org.pac4j.core.client.Clients


    return new GoogleOpenIdClient();
  }

  @Bean
  public Clients clients() {
    return new Clients(configurer.getAuthenticationCallbackBaseUrl() + Pac4jAuthenticationUtils.CALLBACK_URI,
        googleClient(), gitHubClient(), twitterClient());
  }
View Full Code Here


  }

  private void initiateAuthentication(final Context context) {
    final Request request = context.getRequest();
    request.get(SessionStorage.class).put(SAVED_URI, request.getUri());
    final Clients clients = request.get(Clients.class);
    final RatpackWebContext webContext = new RatpackWebContext(context);
    context.blocking(new Callable<Void>() {
      @Override
      public Void call() throws Exception {
        clients.findClient(name).redirect(webContext, true, false);
        return null;
      }
    }).onError(new Action<Throwable>() {
      @Override
      public void execute(Throwable ex) throws Exception {
View Full Code Here

  }

  @Override
  public void handle(Context context) throws Exception {
    String callbackUrl = context.get(PublicAddress.class).getAddress(context).toString() + "/" + callbackPath;
    context.getRequest().add(new Clients(callbackUrl, clients));
    context.next();
  }
View Full Code Here

TOP

Related Classes of org.pac4j.core.client.Clients

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.