router.route().handler(SessionHandler.create(LocalSessionStore.create(vertx))); OAuth2Auth authProvider = GithubAuth.create(vertx, CLIENT_ID, CLIENT_SECRET);
/** * Create a OAuth2Auth provider for Github * * @param clientId the client id given to you by Github * @param clientSecret the client secret given to you by Github */ static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret) { return create(vertx, clientId, clientSecret, new HttpClientOptions()); }
/** * Create a OAuth2Auth provider for Github * @param vertx * @param clientId the client id given to you by Github * @param clientSecret the client secret given to you by Github * @return */ public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret) { io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.GithubAuth.create(vertx.getDelegate(), clientId, clientSecret)); return ret; }
/** * Create a OAuth2Auth provider for Github * @param vertx * @param clientId the client id given to you by Github * @param clientSecret the client secret given to you by Github * @param httpClientOptions custom http client options * @return */ public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret, HttpClientOptions httpClientOptions) { io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.GithubAuth.create(vertx.getDelegate(), clientId, clientSecret, httpClientOptions)); return ret; }
/** * Create a OAuth2Auth provider for Github * @param vertx * @param clientId the client id given to you by Github * @param clientSecret the client secret given to you by Github * @return */ public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret) { io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.GithubAuth.create(vertx.getDelegate(), clientId, clientSecret)); return ret; }
/** * Create a OAuth2Auth provider for Github * @param vertx * @param clientId the client id given to you by Github * @param clientSecret the client secret given to you by Github * @param httpClientOptions custom http client options * @return */ public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret, HttpClientOptions httpClientOptions) { io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.GithubAuth.create(vertx.getDelegate(), clientId, clientSecret, httpClientOptions)); return ret; }
public static io.vertx.ext.auth.oauth2.OAuth2Auth create(io.vertx.ext.auth.oauth2.providers.GithubAuth j_receiver, io.vertx.core.Vertx vertx, java.lang.String clientId, java.lang.String clientSecret, java.util.Map<String, Object> httpClientOptions) { return io.vertx.core.impl.ConversionHelper.fromObject(io.vertx.ext.auth.oauth2.providers.GithubAuth.create(vertx, clientId, clientSecret, httpClientOptions != null ? new io.vertx.core.http.HttpClientOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(httpClientOptions)) : null)); } }