File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 7373import com .amazonaws .mobile .client .results .Tokens ;
7474import com .amazonaws .mobile .client .results .UserCodeDeliveryDetails ;
7575import com .amazonaws .mobile .config .AWSConfiguration ;
76+ import com .amazonaws .mobileconnectors .cognitoauth .AuthClient ;
7677import com .amazonaws .mobileconnectors .cognitoidentityprovider .util .CognitoJWTParser ;
7778import com .amazonaws .services .cognitoidentity .model .NotAuthorizedException ;
7879import org .json .JSONException ;
9091 * A Cognito implementation of the Auth Plugin.
9192 */
9293public final class AWSCognitoAuthPlugin extends AuthPlugin <AWSMobileClient > {
94+ /**
95+ * The code which the web UI activity is launched under and is needed to listen to the result.
96+ * See the documentation for more information: https://docs.amplify.aws/lib/auth/signin_web_ui/q/platform/android
97+ */
98+ public static final int WEB_UI_SIGN_IN_ACTIVITY_CODE = AuthClient .CUSTOM_TABS_ACTIVITY_CODE ;
99+
93100 private static final String AWS_COGNITO_AUTH_PLUGIN_KEY = "awsCognitoAuthPlugin" ;
94101 private static final long SECONDS_BEFORE_TIMEOUT = 10 ;
95102 private static final String COGNITO_USER_ID_ATTRIBUTE = "sub" ;
Original file line number Diff line number Diff line change 5151 minSdkVersion = 16
5252 targetSdkVersion = 30
5353
54- awsSdkVersion = ' 2.17.1 '
54+ awsSdkVersion = ' 2.18.0 '
5555 dependency = [
5656 android : [
5757 desugartools : ' com.android.tools:desugar_jdk_libs:1.0.9' ,
You can’t perform that action at this time.
0 commit comments