router.route().handler(SessionHandler.create(LocalSessionStore.create(vertx))); OAuth2Auth authProvider = GithubAuth.create(vertx, CLIENT_ID, CLIENT_SECRET);
/** * Create a OAuth2Auth provider for Keycloak * * @param config the json config file exported from Keycloak admin console */ static OAuth2Auth create(Vertx vertx, JsonObject config) { return create(vertx, OAuth2FlowType.AUTH_CODE, config); }
/** * Create a OAuth2Auth provider for Heroku * * @param clientId the client id given to you by Heroku * @param clientSecret the client secret given to you by Heroku */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret) { return create(vertx, clientId, clientSecret, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for Google Service Account (Server to Server) * * @param serviceAccountJson the configuration json file from your Google API page */ static OAuth2Auth create(Vertx vertx, JsonObject serviceAccountJson) { return create(vertx, serviceAccountJson, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for Shopify * * @param clientId the client id given to you by Shopify * @param clientSecret the client secret given to you by Shopify * @param shop your shop name */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret, String shop) { return create(vertx, clientId, clientSecret, shop, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for App.net * * @param clientId the client id given to you by box.com * @param clientSecret the client secret given to you by box.com */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret) { return create(vertx, clientId, clientSecret, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for Salesforce * * @param clientId the client id given to you by Salesforce * @param clientSecret the client secret given to you by Salesforce */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret) { return create(vertx, clientId, clientSecret, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for Facebook * * @param clientId the client id given to you by Facebook * @param clientSecret the client secret given to you by Facebook */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret) { return create(vertx, clientId, clientSecret, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for CloudFoundry UAA * * @param clientId the client id given to you by CloudFoundry UAA * @param clientSecret the client secret given to you by CloudFoundry UAA * @param uuaURL the url to your UUA server instance */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret, String uuaURL) { return create(vertx, clientId, clientSecret, uuaURL, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for Foursquare * * @param clientId the client id given to you by Foursquare * @param clientSecret the client secret given to you by Foursquare */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret) { return create(vertx, clientId, clientSecret, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for Mailchimp * * @param clientId the client id given to you by Mailchimp * @param clientSecret the client secret given to you by Mailchimp */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret) { return create(vertx, clientId, clientSecret, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for Twitter * * @param clientId the client id given to you by Twitter * @param clientSecret the client secret given to you by Twitter */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret) { return create(vertx, clientId, clientSecret, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for Dropbox * * @param clientId the client id given to you by Dropbox * @param clientSecret the client secret given to you by Dropbox */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret) { return create(vertx, clientId, clientSecret, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for SoundCloud * * @param clientId the client id given to you by SoundCloud * @param clientSecret the client secret given to you by SoundCloud */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret) { return create(vertx, clientId, clientSecret, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for Instagram * * @param clientId the client id given to you by Instagram * @param clientSecret the client secret given to you by Instagram */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret) { return create(vertx, clientId, clientSecret, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for live.com * * @param clientId the client id given to you by live.com * @param clientSecret the client secret given to you by live.com */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret) { return create(vertx, clientId, clientSecret, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for Keycloak * * @param config the json config file exported from Keycloak admin console * @param httpClientOptions custom http client options */ static OAuth2Auth create(Vertx vertx, JsonObject config, HttpClientOptions httpClientOptions) { return create(vertx, OAuth2FlowType.AUTH_CODE, config, httpClientOptions); }
public static io.vertx.ext.auth.oauth2.OAuth2Auth create(io.vertx.ext.auth.oauth2.providers.GoogleAuth j_receiver, io.vertx.core.Vertx vertx, java.util.Map<String, Object> serviceAccountJson) { return io.vertx.core.impl.ConversionHelper.fromObject(io.vertx.ext.auth.oauth2.providers.GoogleAuth.create(vertx, serviceAccountJson != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(serviceAccountJson) : null)); } public static io.vertx.ext.auth.oauth2.OAuth2Auth create(io.vertx.ext.auth.oauth2.providers.GoogleAuth j_receiver, io.vertx.core.Vertx vertx, java.util.Map<String, Object> serviceAccountJson, java.util.Map<String, Object> httpClientOptions) {
/** * Create a OAuth2Auth provider for Keycloak * * @param flow the oauth2 flow to use * @param config the json config file exported from Keycloak admin console */ static OAuth2Auth create(Vertx vertx, OAuth2FlowType flow, JsonObject config) { return create(vertx, flow, config, new HttpClientOptions()); }
public static io.vertx.ext.auth.oauth2.OAuth2Auth create(io.vertx.ext.auth.oauth2.providers.KeycloakAuth j_receiver, io.vertx.core.Vertx vertx, io.vertx.ext.auth.oauth2.OAuth2FlowType flow, java.util.Map<String, Object> config) { return io.vertx.core.impl.ConversionHelper.fromObject(io.vertx.ext.auth.oauth2.providers.KeycloakAuth.create(vertx, flow, config != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(config) : null)); } public static io.vertx.ext.auth.oauth2.OAuth2Auth create(io.vertx.ext.auth.oauth2.providers.KeycloakAuth j_receiver, io.vertx.core.Vertx vertx, java.util.Map<String, Object> config, java.util.Map<String, Object> httpClientOptions) {