case "extraParameters": if (member.getValue() instanceof JsonObject) { obj.setExtraParameters(((JsonObject)member.getValue()).copy());
/** * Create a OAuth2Auth provider for Microsoft Azure Active Directory * * @param clientId the client id given to you by Azure * @param clientSecret the client secret given to you by Azure * @param guid the guid of your application given to you by Azure * @param httpClientOptions custom http client options */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret, String guid, HttpClientOptions httpClientOptions) { return OAuth2Auth.create(vertx, new OAuth2ClientOptions(httpClientOptions) .setFlow(OAuth2FlowType.AUTH_CODE) .setSite("https://login.windows.net/" + guid) .setTokenPath("/oauth2/token") .setAuthorizationPath("/oauth2/authorize") .setScopeSeparator(",") .setClientID(clientId) .setClientSecret(clientSecret) .setExtraParameters( new JsonObject().put("resource", guid))); }