File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito Expand file tree Collapse file tree 2 files changed +1
-9
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 ;
7776import com .amazonaws .mobileconnectors .cognitoidentityprovider .util .CognitoJWTParser ;
7877import com .amazonaws .services .cognitoidentity .model .NotAuthorizedException ;
7978import org .json .JSONException ;
9190 * A Cognito implementation of the Auth Plugin.
9291 */
9392public final class AWSCognitoAuthPlugin extends AuthPlugin <AWSMobileClient > {
94- /**
95- * The result code for the activity manging the web UI sign in flow.
96- * This is needed for handling the response in the onActivityResult method of your activity.
97- * See the documentation for more information: https://docs.amplify.aws/lib/auth/signin_web_ui/q/platform/android
98- */
99- public static final int WEB_UI_SIGN_IN_ACTIVITY_CODE = AuthClient .CUSTOM_TABS_ACTIVITY_CODE ;
100-
10193 private static final String AWS_COGNITO_AUTH_PLUGIN_KEY = "awsCognitoAuthPlugin" ;
10294 private static final long SECONDS_BEFORE_TIMEOUT = 10 ;
10395 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.18.0 '
54+ awsSdkVersion = ' 2.17.1 '
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