Skip to content

Commit 45279f6

Browse files
committed
feat/docs(android): add InAppWebView test variants to CAScopeSelectionLoginTests; update README
1 parent de83060 commit 45279f6

2 files changed

Lines changed: 47 additions & 12 deletions

File tree

native/NativeSampleApps/AuthFlowTester/README.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,21 @@ Legacy login tests using the default Connected App (CA) opaque configuration fro
2222
| `testCAOpaque_DefaultScopes_UserAgentFlow_NotHybrid` | CA Opaque | Default | User Agent | No |
2323

2424
#### CAScopeSelectionLoginTests
25-
Connected App login tests with explicit scope selection across web server and user agent flows, both hybrid and non-hybrid.
26-
27-
| Test | Scopes | Flow | Hybrid |
28-
|------|--------|------|--------|
29-
| `testCAOpaque_SubsetScopes_WebServerFlow` | Subset | Web Server | No |
30-
| `testCAOpaque_AllScopes_WebServerFlow` | All | Web Server | Yes |
31-
| `testCAOpaque_SubsetScopes_WebServerFlow_NotHybrid` | Subset | Web Server | No |
32-
| `testCAOpaque_AllScopes_WebServerFlow_NotHybrid` | All | Web Server | No |
33-
| `testCAOpaque_SubsetScopes_UserAgentFlow` | Subset | User Agent | Yes |
34-
| `testCAOpaque_AllScopes_UserAgentFlow` | All | User Agent | Yes |
35-
| `testCAOpaque_SubsetScopes_UserAgentFlow_NotHybrid` | Subset | User Agent | No |
36-
| `testCAOpaque_AllScopes_UserAgentFlow_NotHybrid` | All | User Agent | No |
25+
Connected App login tests with explicit scope selection across web server and user agent flows, both hybrid and non-hybrid. Includes in-app WebView variants (`forceAdvancedAuthentication = false`) that exercise the legacy WKWebView path.
26+
27+
| Test | Scopes | Flow | Auth Surface |
28+
|------|--------|------|--------------|
29+
| `testCAOpaque_SubsetScopes_WebServerFlow` | Subset | Web Server | Browser (default) |
30+
| `testCAOpaque_AllScopes_WebServerFlow` | All | Web Server | Browser (default) |
31+
| `testCAOpaque_DefaultScopes_WebServerFlow_InAppWebView` | Default | Web Server | In-App WebView |
32+
| `testCAOpaque_SubsetScopes_WebServerFlow_InAppWebView` | Subset | Web Server | In-App WebView |
33+
| `testCAOpaque_AllScopes_WebServerFlow_InAppWebView` | All | Web Server | In-App WebView |
34+
| `testCAOpaque_SubsetScopes_WebServerFlow_NotHybrid` | Subset | Web Server | Browser (default) |
35+
| `testCAOpaque_AllScopes_WebServerFlow_NotHybrid` | All | Web Server | Browser (default) |
36+
| `testCAOpaque_SubsetScopes_UserAgentFlow` | Subset | User Agent | In-App WebView |
37+
| `testCAOpaque_AllScopes_UserAgentFlow` | All | User Agent | In-App WebView |
38+
| `testCAOpaque_SubsetScopes_UserAgentFlow_NotHybrid` | Subset | User Agent | In-App WebView |
39+
| `testCAOpaque_AllScopes_UserAgentFlow_NotHybrid` | All | User Agent | In-App WebView |
3740

3841
#### ECALoginTests
3942
External Client App (ECA) login tests for both opaque and JWT token formats with scope variations.

native/NativeSampleApps/AuthFlowTester/src/androidTest/java/com/salesforce/samples/authflowtester/CAScopeSelectionLoginTests.kt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,38 @@ class CAScopeSelectionLoginTests: AuthFlowTest() {
8888
)
8989
}
9090

91+
// endregion
92+
// region CA Web Server Flow Tests (In-App WebView)
93+
94+
// Login with CA opaque using default scopes, web server flow, and in-app WebView (advanced auth disabled).
95+
@Test
96+
fun testCAOpaque_DefaultScopes_WebServerFlow_InAppWebView() {
97+
loginAndValidate(
98+
knownAppConfig = CA_OPAQUE,
99+
forceAdvancedAuthentication = false,
100+
)
101+
}
102+
103+
// Login with CA opaque using subset of scopes, web server flow, and in-app WebView (advanced auth disabled).
104+
@Test
105+
fun testCAOpaque_SubsetScopes_WebServerFlow_InAppWebView() {
106+
loginAndValidate(
107+
knownAppConfig = CA_OPAQUE,
108+
scopeSelection = SUBSET,
109+
forceAdvancedAuthentication = false,
110+
)
111+
}
112+
113+
// Login with CA opaque using all scopes, web server flow, and in-app WebView (advanced auth disabled).
114+
@Test
115+
fun testCAOpaque_AllScopes_WebServerFlow_InAppWebView() {
116+
loginAndValidate(
117+
knownAppConfig = CA_OPAQUE,
118+
scopeSelection = ALL,
119+
forceAdvancedAuthentication = false,
120+
)
121+
}
122+
91123
// endregion
92124
// region CA User Agent Flow Tests
93125

0 commit comments

Comments
 (0)