use of com.stormpath.shiro.realm.ApplicationRealm in project vertx-auth by vert-x3.
the class StormpathTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
// Setup our shiro+stormpath+vertx integration
File file = ((VertxInternal) vertx).resolveFile("stormpath.properties");
ApiKey apiKey = ApiKeys.builder().setFileLocation(file.getAbsolutePath()).build();
Client client = Clients.builder().setApiKey(apiKey).build();
ApplicationRealm stormpathAppRealm = new ApplicationRealm();
stormpathAppRealm.setClient(client);
stormpathAppRealm.setApplicationRestUrl("https://api.stormpath.com/v1/applications/2oFtzixwgN0wYKt25euKpg");
authProvider = ShiroAuth.create(vertx, stormpathAppRealm);
}
Aggregations