Skip to content

Commit 5d081dc

Browse files
committed
Only failures are migration from beacon app.
Getting a 403 when invoking the single access bridge API with a beacon app access token (file a bug with auth team).
1 parent 323b5e6 commit 5d081dc

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

native/SampleApps/AuthFlowTester/AuthFlowTesterUITests/Tests/MigrationTests.swift

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,34 @@ class MigrationTests: BaseAuthFlowTesterTest {
8282
)
8383
}
8484

85-
// MARK: - Cross-App Migrations with rollbacks
85+
// MARK: - Migration to or from beacon
86+
87+
// Migrate from CA to Beacon
88+
func testMigrateCAToBeacon() throws {
89+
launchAndLogin(
90+
user:.second,
91+
staticAppConfigName: .caAdvancedOpaque
92+
)
93+
migrateAndValidate(
94+
staticAppConfigName: .caAdvancedOpaque,
95+
migrationAppConfigName: .beaconAdvancedOpaque
96+
)
97+
}
8698

99+
// Migrate from Beacon to CA
100+
func testMigrateBeaconToCA() throws {
101+
launchAndLogin(
102+
user:.second,
103+
staticAppConfigName: .beaconAdvancedOpaque
104+
)
105+
migrateAndValidate(
106+
staticAppConfigName: .beaconAdvancedOpaque,
107+
migrationAppConfigName: .caAdvancedOpaque
108+
)
109+
}
110+
111+
// MARK: - Cross-App Migrations with rollbacks
112+
87113
/// Migrate from CA to ECA and back to CA
88114
func testMigrateCAToECA() throws {
89115
launchAndLogin(

native/SampleApps/AuthFlowTester/AuthFlowTesterUITests/overview.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Tests for Beacon app configurations using web server flow with hybrid auth.
7171

7272
## Migration Tests
7373

74-
### MigrationTests (6 tests)
74+
### MigrationTests (8 tests)
7575

7676
Tests for migrating refresh tokens between different app configurations without re-authentication.
7777

@@ -80,8 +80,10 @@ Tests for migrating refresh tokens between different app configurations without
8080
| `testMigrateCA_AddMoreScopes` | CA Advanced JWT (subset) | CA Advanced JWT (all) | Yes (add more scopes) |
8181
| `testMigrateECA_AddMoreScopes` | ECA Advanced JWT (subset) | ECA Advanced JWT (all) | Yes (add more scopes) |
8282
| `testMigrateBeacon_AddMoreScopes` | Beacon Advanced JWT (subset) | Beacon Advanced JWT (all) | Yes (add more scopes) |
83+
| `testMigrateCAToBeacon` | CA Advanced Opaque | Beacon Advanced Opaque | No |
84+
| `testMigrateBeaconToCA` | Beacon Advanced Opaque | CA Advanced Opaque | No |
8385
| `testMigrateCAToECA` | CA Advanced Opaque → ECA Advanced Opaque → CA Advanced Opaque | Migration with rollback | No |
84-
| `testMigrateCAToBeaconAndBack` | CA Advanced Opaque → Beacon Advanced Opaque → CA Advanced Opaque | Migration with rollback | No |
86+
| `testMigrateCAToBeaconAndBack` | CA Advanced Opaque → Beacon Advanced Opaque | Migration to Beacon | No |
8587
| `testMigrateBeaconOpaqueToJWTAndBack` | Beacon Advanced Opaque → Beacon Advanced JWT → Beacon Advanced Opaque | Migration with rollback | No |
8688

8789
---

0 commit comments

Comments
 (0)