-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from ringpublishing/bugfix/iz-parameter
IZ is set only for O!Konto sso system name
- Loading branch information
Showing
7 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
1.5.3 Release notes (2024-10-03) | ||
================================ | ||
|
||
### Changes | ||
|
||
* IZ parameter set only when SSO system name equals 'O!Konto' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,7 +187,7 @@ class DecoratorTests: XCTestCase { | |
XCTAssertNil(params["IZ"], "IZ should be empty") | ||
} | ||
|
||
func testParameters_userDataDecoratorCreated_returnedParametersAreCorrect() { | ||
func testParameters_userDataDecoratorCreatedForNonOKontoSSO_returnedParametersAreCorrect() { | ||
// Given | ||
let userId = "12345" | ||
let email = "[email protected]" | ||
|
@@ -202,6 +202,25 @@ class DecoratorTests: XCTestCase { | |
eyJzc28iOnsibG9nZ2VkIjp7ImlkIjoiMTIzNDUiLCJtZDUiOiI5Mzk0MmU5NmY1YWNkODNlMmUwNDdhZDhmZTAzMTE0ZCJ9LCJuYW1lIjoiVGVzdCJ9fQ== | ||
""" | ||
|
||
XCTAssertEqual(params["RDLU"], expectedBase64, "RDLU should match") | ||
XCTAssertTrue(params["IZ"] == nil, "IZ should be empty for SSO system name not equal to O!Konto") | ||
} | ||
|
||
func testParameters_userDataDecoratorCreatedForOKontoSSO_returnedParametersAreCorrect() { | ||
// Given | ||
let userId = "12345" | ||
let email = "[email protected]" | ||
let decorator = UserDataDecorator() | ||
|
||
// Then | ||
decorator.updateUserData(userId: userId, email: email) | ||
decorator.updateSSO(ssoSystemName: "O!Konto") | ||
let params = decorator.parameters | ||
|
||
let expectedBase64 = """ | ||
eyJzc28iOnsibG9nZ2VkIjp7ImlkIjoiMTIzNDUiLCJtZDUiOiI5Mzk0MmU5NmY1YWNkODNlMmUwNDdhZDhmZTAzMTE0ZCJ9LCJuYW1lIjoiTyFLb250byJ9fQ== | ||
""" | ||
|
||
XCTAssertEqual(params["RDLU"], expectedBase64, "RDLU should match") | ||
XCTAssertEqual(params["IZ"], userId, "IZ should match") | ||
} | ||
|