Class OAuth2RedirectActivity
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.content.ComponentCallbacks2,android.view.KeyEvent.Callback,android.view.LayoutInflater.Factory,android.view.LayoutInflater.Factory2,android.view.View.OnCreateContextMenuListener,android.view.Window.Callback
public final class OAuth2RedirectActivity extends ActivityUsed to signal the end of OAuth2 authorization. An application doesn't need to use this class directly, but this class needs to have a correct tag in AndroidManifest.xml. By default this activity is in the AndroidManifest.xml with a scheme that is the app ID. The scheme must match the scheme of the redirect URL that is part of the OAuth security settings for the application on the server. If a non-default scheme is required, add a tag like this to AndroidManifest.xml inside the application tag:
<pre> <activity android:name="com.sap.cloud.mobile.foundation.authentication.OAuth2RedirectActivity" tools:node="replace"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="customScheme"/> </intent-filter> </activity> ` * </pre> *If an HTTPS redirect URI is required instead of a custom scheme, the same approach is used:
<pre> <activity android:name="com.sap.cloud.mobile.foundation.authentication.OAuth2RedirectActivity" tools:node="replace"> <intent-filter> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.DEFAULT"/> <category android:name="android.intent.category.BROWSABLE"/> <data android:scheme="https" android:host="example.host.com" android:path="/oauth2_redirect"/> </intent-filter> </activity> ` * </pre> *
-
-
Constructor Summary
Constructors Constructor Description OAuth2RedirectActivity()
-