Codota Logo
AzureADAuth
Code IndexAdd Codota to your IDE (free)

How to use
AzureADAuth
in
io.vertx.ext.auth.oauth2.providers

Best Java code snippets using io.vertx.ext.auth.oauth2.providers.AzureADAuth (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: io.vertx/vertx-auth-oauth2

/**
 * 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
 */
static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret, String guid) {
 return create(vertx, clientId, clientSecret, guid, new HttpClientOptions());
}
origin: io.vertx/vertx-rx-java

/**
 * Create a OAuth2Auth provider for OpenID Connect Discovery. The discovery will use the default site in the
 * configuration options and attempt to load the well known descriptor. If a site is provided (for example when
 * running on a custom instance) that site will be used to do the lookup.
 * <p>
 * If the discovered config includes a json web key url, it will be also fetched and the JWKs will be loaded
 * into the OAuth provider so tokens can be decoded.
 * @param vertx the vertx instance
 * @param config the initial config
 * @param handler the instantiated Oauth2 provider instance handler
 */
public static void discover(io.vertx.rxjava.core.Vertx vertx, OAuth2ClientOptions config, Handler<AsyncResult<io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth>> handler) { 
 io.vertx.ext.auth.oauth2.providers.AzureADAuth.discover(vertx.getDelegate(), config, new Handler<AsyncResult<io.vertx.ext.auth.oauth2.OAuth2Auth>>() {
  public void handle(AsyncResult<io.vertx.ext.auth.oauth2.OAuth2Auth> ar) {
   if (ar.succeeded()) {
    handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(ar.result())));
   } else {
    handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
   }
  }
 });
}
origin: io.vertx/vertx-rx-java

/**
 * Create a OAuth2Auth provider for Microsoft Azure Active Directory
 * @param vertx 
 * @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
 * @return 
 */
public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret, String guid) { 
 io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.AzureADAuth.create(vertx.getDelegate(), clientId, clientSecret, guid));
 return ret;
}
origin: vert-x3/vertx-rx

/**
 * Create a OAuth2Auth provider for OpenID Connect Discovery. The discovery will use the default site in the
 * configuration options and attempt to load the well known descriptor. If a site is provided (for example when
 * running on a custom instance) that site will be used to do the lookup.
 * <p>
 * If the discovered config includes a json web key url, it will be also fetched and the JWKs will be loaded
 * into the OAuth provider so tokens can be decoded.
 * @param vertx the vertx instance
 * @param config the initial config
 * @param handler the instantiated Oauth2 provider instance handler
 */
public static void discover(io.vertx.rxjava.core.Vertx vertx, OAuth2ClientOptions config, Handler<AsyncResult<io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth>> handler) { 
 io.vertx.ext.auth.oauth2.providers.AzureADAuth.discover(vertx.getDelegate(), config, new Handler<AsyncResult<io.vertx.ext.auth.oauth2.OAuth2Auth>>() {
  public void handle(AsyncResult<io.vertx.ext.auth.oauth2.OAuth2Auth> ar) {
   if (ar.succeeded()) {
    handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(ar.result())));
   } else {
    handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
   }
  }
 });
}
origin: vert-x3/vertx-rx

/**
 * Create a OAuth2Auth provider for Microsoft Azure Active Directory
 * @param vertx 
 * @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
 * @return 
 */
public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret, String guid, HttpClientOptions httpClientOptions) { 
 io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.AzureADAuth.create(vertx.getDelegate(), clientId, clientSecret, guid, httpClientOptions));
 return ret;
}
origin: io.vertx/vertx-lang-groovy

 public static void discover(io.vertx.ext.auth.oauth2.providers.AzureADAuth j_receiver, io.vertx.core.Vertx vertx, java.util.Map<String, Object> config, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.auth.oauth2.OAuth2Auth>> handler) {
  io.vertx.ext.auth.oauth2.providers.AzureADAuth.discover(vertx,
   config != null ? new io.vertx.ext.auth.oauth2.OAuth2ClientOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(config)) : null,
   handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.auth.oauth2.OAuth2Auth>>() {
   public void handle(io.vertx.core.AsyncResult<io.vertx.ext.auth.oauth2.OAuth2Auth> ar) {
    handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
   }
  } : null);
 }
}
origin: vert-x3/vertx-rx

/**
 * Create a OAuth2Auth provider for Microsoft Azure Active Directory
 * @param vertx 
 * @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
 * @return 
 */
public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret, String guid) { 
 io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.AzureADAuth.create(vertx.getDelegate(), clientId, clientSecret, guid));
 return ret;
}
origin: io.vertx/vertx-auth-oauth2

@Test
public void testMicrosoft() {
 AzureADAuth.discover(vertx, new OAuth2ClientOptions(), load -> {
  // will fail as there is no application config, but the parsing should have happened
  assertTrue(load.failed());
  assertEquals("Configuration missing. You need to specify [clientId]", load.cause().getMessage());
  testComplete();
 });
 await();
}
origin: io.vertx/vertx-rx-java

/**
 * Create a OAuth2Auth provider for Microsoft Azure Active Directory
 * @param vertx 
 * @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
 * @return 
 */
public static io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth create(io.vertx.rxjava.core.Vertx vertx, String clientId, String clientSecret, String guid, HttpClientOptions httpClientOptions) { 
 io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth ret = io.vertx.rxjava.ext.auth.oauth2.OAuth2Auth.newInstance(io.vertx.ext.auth.oauth2.providers.AzureADAuth.create(vertx.getDelegate(), clientId, clientSecret, guid, httpClientOptions));
 return ret;
}
origin: io.vertx/vertx-lang-groovy

public static io.vertx.ext.auth.oauth2.OAuth2Auth create(io.vertx.ext.auth.oauth2.providers.AzureADAuth j_receiver, io.vertx.core.Vertx vertx, java.lang.String clientId, java.lang.String clientSecret, java.lang.String guid, java.util.Map<String, Object> httpClientOptions) {
 return io.vertx.core.impl.ConversionHelper.fromObject(io.vertx.ext.auth.oauth2.providers.AzureADAuth.create(vertx,
  clientId,
  clientSecret,
  guid,
  httpClientOptions != null ? new io.vertx.core.http.HttpClientOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(httpClientOptions)) : null));
}
public static void discover(io.vertx.ext.auth.oauth2.providers.AzureADAuth j_receiver, io.vertx.core.Vertx vertx, java.util.Map<String, Object> config, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.auth.oauth2.OAuth2Auth>> handler) {
io.vertx.ext.auth.oauth2.providersAzureADAuth

Javadoc

Simplified factory to create an OAuth2Auth for Azure AD.

Most used methods

  • create
    Create a OAuth2Auth provider for Microsoft Azure Active Directory
  • discover
    Create a OAuth2Auth provider for OpenID Connect Discovery. The discovery will use the default site i

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now