Tabnine Logo
AzureADAuth
Code IndexAdd Tabnine 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)

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

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now