public static AuthenticationBean none() { return newAuthenticationBean().withType(AuthenticationType.NONE).build(); }
public static AuthenticationBean none() { return newAuthenticationBean().withType(AuthenticationType.NONE).build(); }
private static String createAuthenticationExample() { AuthenticationBean bean = newAuthenticationBean().withType(AuthenticationType.JWT).build(); return gson.toJson(JsonExamplesUtils.createJsonObject("authentication", bean)); }
private static String createAuthenticationExample() { AuthenticationBean bean = newAuthenticationBean().withType(AuthenticationType.JWT).build(); return gson.toJson(JsonExamplesUtils.createJsonObject("authentication", bean)); }
private ConnectRunner addJWT(HttpServlet installHandlerServlet, SignedRequestHandler signedRequestHandler) { addonBuilder.withAuthentication(AuthenticationBean.newAuthenticationBean() .withType(AuthenticationType.JWT) .build()); addInstallLifecycle(); this.signedRequestHandler = signedRequestHandler; addRoute(INSTALLED_PATH, installHandlerServlet); return this; }
private ConnectRunner addJWT(HttpServlet installHandlerServlet, SignedRequestHandler signedRequestHandler) { addonBuilder.withAuthentication(AuthenticationBean.newAuthenticationBean() .withType(AuthenticationType.JWT) .build()); addInstallLifecycle(); this.signedRequestHandler = signedRequestHandler; addRoute(INSTALLED_PATH, installHandlerServlet); return this; }
.withAuthentication(new AuthenticationBeanBuilder().withType(AuthenticationType.valueOf(rawConnectAddon.getAuthType())).build()) .withBaseurl(rawConnectAddon.getBaseUrl()) .withScopes(addonScopes)
private ConnectAddonBean createAddonBeanWithScope(ScopeName scopeName) { final String key = getPluginKeyForScopeName(scopeName); ConnectAddonBeanBuilder connectAddonBeanBuilder = newConnectAddonBean() .withKey(key) .withName(key) .withBaseurl(testPluginInstaller.getInternalAddonBaseUrl(key)) .withLicensing(true) .withAuthentication(newAuthenticationBean() .withType(AuthenticationType.JWT) .build()) .withLifecycle(newLifecycleBean() .withInstalled("/installed") .build()) .withModule("generalPages", newPageBean() .withUrl("/hello-world.html") .withKey("general") .withName(I18nProperty.value("Greeting")) .build()); // scopes are optional so that we can have "no scopes" test classes if (null != scopeName) { connectAddonBeanBuilder = connectAddonBeanBuilder.withScopes(new HashSet<>(singletonList(scopeName))); } return connectAddonBeanBuilder.build(); } }