Package org.forgerock.android.auth
Class AppAuthConfigurer
-
- All Implemented Interfaces:
public class AppAuthConfigurerAppAuth Integration, https://github.com/openid/AppAuth-Android this class provides AppAuth integration and customization
-
-
Constructor Summary
Constructors Constructor Description AppAuthConfigurer()
-
Method Summary
Modifier and Type Method Description AppAuthConfigurerauthorizationServiceConfiguration(@NonNull() Supplier<AuthorizationServiceConfiguration> authorizationServiceConfiguration)Override the default OAuth2 endpoint defined under the String.xml forgerock_url. AppAuthConfigurerauthorizationRequest(@NonNull() Consumer<AuthorizationRequest.Builder> authorizationRequest)Override the AuthorizationRequest that was prepared by the SDK. AppAuthConfigurerappAuthConfiguration(@NonNull() Consumer<AppAuthConfiguration.Builder> appAuthConfiguration)Override the AppAuthConfiguration that was prepared by the SDK. AppAuthConfigurercustomTabsIntent(@NonNull() Consumer<CustomTabsIntent.Builder> customTabsIntent)Override the CustomTabsIntent that was prepared by the SDK. FRUser.Browserdone()Finish up the AppAuth customization. -
-
Method Detail
-
authorizationServiceConfiguration
AppAuthConfigurer authorizationServiceConfiguration(@NonNull() Supplier<AuthorizationServiceConfiguration> authorizationServiceConfiguration)
Override the default OAuth2 endpoint defined under the String.xml forgerock_url.
- Parameters:
authorizationServiceConfiguration- Supplier that provide the AuthorizationServiceConfiguration, oauth2 endpoint.
-
authorizationRequest
AppAuthConfigurer authorizationRequest(@NonNull() Consumer<AuthorizationRequest.Builder> authorizationRequest)
Override the AuthorizationRequest that was prepared by the SDK. The client_id, response type (code), redirect uri, scope are populated by the configuration defined under string.xml forgerock_oauth_client_id, forgerock_oauth_redirect_uri, forgerock_oauth_scope. Developer can provide more customization on the AuthorizationRequest object, for example setPrompt
- Parameters:
authorizationRequest- java.util.function.Consumer that override the AuthorizationRequest, some attributes are pre-populated by the provided AuthorizationRequest
-
appAuthConfiguration
AppAuthConfigurer appAuthConfiguration(@NonNull() Consumer<AppAuthConfiguration.Builder> appAuthConfiguration)
Override the AppAuthConfiguration that was prepared by the SDK.
- Parameters:
appAuthConfiguration- java.util.function.Consumer that override the AppAuthConfiguration
-
customTabsIntent
AppAuthConfigurer customTabsIntent(@NonNull() Consumer<CustomTabsIntent.Builder> customTabsIntent)
Override the CustomTabsIntent that was prepared by the SDK.
- Parameters:
customTabsIntent- java.util.function.Consumer that override the CustomTabsIntent, possibleUris (createTabBuilder) is pre-populated by the provided CustomTabsIntent
-
done
FRUser.Browser done()
Finish up the AppAuth customization.
-
-
-
-