Package org.forgerock.android.auth
Class AppAuthConfigurer
- java.lang.Object
-
- org.forgerock.android.auth.AppAuthConfigurer
-
public class AppAuthConfigurer extends java.lang.ObjectAppAuth Integration, https://github.com/openid/AppAuth-Android this class provides AppAuth integration and customization
-
-
Constructor Summary
Constructors Constructor Description AppAuthConfigurer(FRUser.Browser parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppAuthConfigurerappAuthConfiguration(androidx.core.util.Consumer<net.openid.appauth.AppAuthConfiguration.Builder> appAuthConfiguration)Override theAppAuthConfigurationthat was prepared by the SDK.AppAuthConfigurerauthorizationRequest(androidx.core.util.Consumer<net.openid.appauth.AuthorizationRequest.Builder> authorizationRequest)Override theAuthorizationRequestthat was prepared by the SDK.AppAuthConfigurerauthorizationServiceConfiguration(org.forgerock.android.auth.Supplier<net.openid.appauth.AuthorizationServiceConfiguration> authorizationServiceConfiguration)Override the default OAuth2 endpoint defined under the String.xml forgerock_url.AppAuthConfigurercustomTabsIntent(androidx.core.util.Consumer<androidx.browser.customtabs.CustomTabsIntent.Builder> customTabsIntent)Override theCustomTabsIntentthat was prepared by the SDK.FRUser.Browserdone()Finish up the AppAuth customization.
-
-
-
Constructor Detail
-
AppAuthConfigurer
public AppAuthConfigurer(FRUser.Browser parent)
-
-
Method Detail
-
authorizationServiceConfiguration
public AppAuthConfigurer authorizationServiceConfiguration(@NonNull org.forgerock.android.auth.Supplier<net.openid.appauth.AuthorizationServiceConfiguration> authorizationServiceConfiguration)
Override the default OAuth2 endpoint defined under the String.xml forgerock_url.- Parameters:
authorizationServiceConfiguration-Supplierthat provide theAuthorizationServiceConfiguration, oauth2 endpoint.- Returns:
- This AppAuthConfigurer
-
authorizationRequest
public AppAuthConfigurer authorizationRequest(@NonNull androidx.core.util.Consumer<net.openid.appauth.AuthorizationRequest.Builder> authorizationRequest)
Override theAuthorizationRequestthat 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 theAuthorizationRequestobject, for exampleAuthorizationRequest.Builder.setPrompt(String)- Parameters:
authorizationRequest-Consumerthat override theAuthorizationRequest, some attributes are pre-populated by the providedAuthorizationRequest- Returns:
- This AppAuthConfigurer
-
appAuthConfiguration
public AppAuthConfigurer appAuthConfiguration(@NonNull androidx.core.util.Consumer<net.openid.appauth.AppAuthConfiguration.Builder> appAuthConfiguration)
Override theAppAuthConfigurationthat was prepared by the SDK.- Parameters:
appAuthConfiguration-Consumerthat override theAppAuthConfiguration
-
customTabsIntent
public AppAuthConfigurer customTabsIntent(@NonNull androidx.core.util.Consumer<androidx.browser.customtabs.CustomTabsIntent.Builder> customTabsIntent)
Override theCustomTabsIntentthat was prepared by the SDK.- Parameters:
customTabsIntent-Consumerthat override theCustomTabsIntent, possibleUris (CustomTabManager.createTabBuilder(android.net.Uri...)) is pre-populated by the providedCustomTabsIntent
-
done
public FRUser.Browser done()
Finish up the AppAuth customization.
-
-