Skip to content

Instantly share code, notes, and snippets.

@abstractj
Created November 26, 2014 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abstractj/bc238623e79d030d37a6 to your computer and use it in GitHub Desktop.
Save abstractj/bc238623e79d030d37a6 to your computer and use it in GitHub Desktop.
AdapterDeploymentContext deploymentContext = (AdapterDeploymentContext) sce.getServletContext().getAttribute(AdapterDeploymentContext.class.getName());
AdapterConfig config = new AdapterConfig();
config.setRealm("aerogear");
//Dinamically replaced
config.setRealmKey("MIGfMA0GCSqGSIb3DQEBAQUAA");
//Dinamically replaced
config.setAuthServerUrl("http://mydomain.com:8081/auth");
config.setResource("unified-push-server-js");
config.setSslRequired("external");
config.setPublicClient(true);
deploymentContext.updateDeployment(config);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment