You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/options/AWSCognitoAuthWebUISignInOptions.java
+68-2Lines changed: 68 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -36,14 +36,22 @@ public final class AWSCognitoAuthWebUISignInOptions extends AuthWebUISignInOptio
36
36
privatefinalStringloginHint;
37
37
privatefinalList<AuthWebUIPrompt> prompt;
38
38
privatefinalStringresource;
39
+
39
40
/**
40
41
* Advanced options for signing in via a hosted web ui.
41
42
* @param scopes specify OAUTH scopes
42
43
* @param idpIdentifier The IdentityProvider identifier if using multiple instances of same identity provider.
43
44
* @param browserPackage Specify which browser package should be used for web sign in (e.g. "org.mozilla.firefox").
44
45
* Defaults to the Chrome package if not specified.
45
46
* @param preferPrivateSession specifying whether or not to launch web ui in an ephemeral CustomTab.
47
+
* @param nonce random value that can be added to the request, which is included in the ID token
48
+
* that Amazon Cognito issues.
49
+
* @param language language displayed in user-interactive page
50
+
* @param loginHint username prompt passed to the authorization server
51
+
* @param prompt a list of OIDC parameters that controls authentication behavior for existing sessions.
52
+
* @param resource identifier of a resource that you want to bind to the access token in the `aud` claim.
46
53
*/
54
+
@SuppressWarnings("checkstyle:all")
47
55
protectedAWSCognitoAuthWebUISignInOptions(
48
56
List<String> scopes,
49
57
StringidpIdentifier,
@@ -83,26 +91,53 @@ public String getBrowserPackage() {
83
91
returnbrowserPackage;
84
92
}
85
93
94
+
/**
95
+
* Optional A random value that can be added to the request, which is included in the ID token
96
+
* that Amazon Cognito issues. To guard against replay attacks, your app can inspect the nonce claim in the ID
97
+
* token and compare it to the one you generated.
98
+
* @return the nonce value
99
+
*/
86
100
@Nullable
87
101
publicStringgetNonce() {
88
102
returnnonce;
89
103
}
90
104
105
+
/** Optional The language displayed in user-interactive page.
106
+
* For more information, see Managed login localization
0 commit comments