public class AzureADAuth extends OpenIDConnectAuth
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<AzureADAuth> |
__TYPE_ARG |
Constructor and Description |
---|
AzureADAuth(AzureADAuth delegate) |
AzureADAuth(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static OAuth2Auth |
create(Vertx vertx,
String clientId,
String clientSecret,
String guid)
Create a OAuth2Auth provider for Microsoft Azure Active Directory
|
static OAuth2Auth |
create(Vertx vertx,
String clientId,
String clientSecret,
String guid,
HttpClientOptions httpClientOptions)
Create a OAuth2Auth provider for Microsoft Azure Active Directory
|
static void |
discover(Vertx vertx,
OAuth2Options config)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
static void |
discover(Vertx vertx,
OAuth2Options config,
Handler<AsyncResult<OAuth2Auth>> handler)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
boolean |
equals(Object o) |
AzureADAuth |
getDelegate() |
int |
hashCode() |
static AzureADAuth |
newInstance(AzureADAuth arg) |
static Single<OAuth2Auth> |
rxDiscover(Vertx vertx,
OAuth2Options config)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
String |
toString() |
newInstance
public static final io.vertx.lang.rx.TypeArg<AzureADAuth> __TYPE_ARG
public AzureADAuth(AzureADAuth delegate)
public AzureADAuth(Object delegate)
public String toString()
toString
in class OpenIDConnectAuth
public boolean equals(Object o)
equals
in class OpenIDConnectAuth
public int hashCode()
hashCode
in class OpenIDConnectAuth
public AzureADAuth getDelegate()
getDelegate
in class OpenIDConnectAuth
public static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret, String guid)
vertx
- clientId
- the client id given to you by AzureclientSecret
- the client secret given to you by Azureguid
- the guid of your application given to you by Azurepublic static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret, String guid, HttpClientOptions httpClientOptions)
vertx
- clientId
- the client id given to you by AzureclientSecret
- the client secret given to you by Azureguid
- the guid of your application given to you by AzurehttpClientOptions
- custom http client optionspublic static void discover(Vertx vertx, OAuth2Options config, Handler<AsyncResult<OAuth2Auth>> handler)
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.
With this provider, if the given configuration is using the flow type then
the extra parameters object will include requested_token_use = on_behalf_of
as required by
https://docs.microsoft.com/en-us/azure/active-directory.
vertx
- the vertx instanceconfig
- the initial confighandler
- the instantiated Oauth2 provider instance handlerpublic static void discover(Vertx vertx, OAuth2Options config)
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.
With this provider, if the given configuration is using the flow type then
the extra parameters object will include requested_token_use = on_behalf_of
as required by
https://docs.microsoft.com/en-us/azure/active-directory.
vertx
- the vertx instanceconfig
- the initial configpublic static Single<OAuth2Auth> rxDiscover(Vertx vertx, OAuth2Options config)
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.
With this provider, if the given configuration is using the flow type then
the extra parameters object will include requested_token_use = on_behalf_of
as required by
https://docs.microsoft.com/en-us/azure/active-directory.
vertx
- the vertx instanceconfig
- the initial configpublic static AzureADAuth newInstance(AzureADAuth arg)
Copyright © 2024 Eclipse. All rights reserved.