Package | Description |
---|---|
org.mule.runtime.oauth.api | |
org.mule.runtime.oauth.api.builder |
Modifier and Type | Method and Description |
---|---|
<T> OAuthAuthorizationCodeDancerBuilder |
OAuthService.authorizationCodeGrantTypeDancerBuilder(LockFactory lockProvider,
Map<String,T> tokensStore,
MuleExpressionLanguage expressionEvaluator)
Creates a builder for an
AuthorizationCodeOAuthDancer for authorization code grant type. |
Modifier and Type | Method and Description |
---|---|
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.afterDanceCallback(BiConsumer<AuthorizationCodeDanceCallbackContext,ResourceOwnerOAuthContext> callback)
Allows custom code to be run after doing the request to the provided
tokenUrl and processing its results. |
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.authorizationUrl(String authorizationUrl) |
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.beforeDanceCallback(Function<AuthorizationCodeRequest,AuthorizationCodeDanceCallbackContext> callback)
Allows custom code to be run just before doing the request to the provided
tokenUrl . |
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.customParameters(Map<String,String> customParameters)
There are OAuth implementations that require or allow extra query parameters to be sent when calling the Authentication URL
of the OAS.
|
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.customParameters(Supplier<Map<String,String>> customParameters)
There are OAuth implementations that require or allow extra query parameters to be sent when calling the Authentication URL
of the OAS.
|
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.externalCallbackUrl(String externalCallbackUrl)
The oauth authentication server will use this url to provide the authentication code to the Mule server so the mule server
can retrieve the access token.
|
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.localAuthorizationUrlPath(String path)
If this attribute is provided mule will automatically create and endpoint in the host server (the same configured for
localCallback(java.net.URL) ) that the user can hit to authenticate and grant access to the application for his account. |
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.localAuthorizationUrlResourceOwnerId(String localAuthorizationUrlResourceOwnerIdExpr)
This attribute is only required when the applications needs to access resources from more than one user in the OAuth
authentication server.
|
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.localCallback(HttpServer server,
String localCallbackConfigPath)
The produced
AuthorizationCodeOAuthDancer will use an existing HttpServer to listen on the provided
localCallbackConfigPath . |
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.localCallback(URL localCallbackUrl)
The produced
AuthorizationCodeOAuthDancer will create an HttpServer to listen on the provided
localCallbackUrl . |
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.localCallback(URL localCallbackUrl,
TlsContextFactory tlsContextFactory)
The produced
AuthorizationCodeOAuthDancer will create an HttpServer with the provided
tlsContextFactory to listen on the provided localCallbackUrl . |
OAuthAuthorizationCodeDancerBuilder |
OAuthAuthorizationCodeDancerBuilder.state(String stateExpr)
Mule will add some internal stuff to the state that is sent to the Authorization server.
|
Copyright © 2018. All rights reserved.