-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: launch-authenticator relatesTo work-around (#1466)
OKTA-659175 fix: launch-authenticator relatesTo work-around
- Loading branch information
1 parent
ae12c07
commit 55d982a
Showing
6 changed files
with
323 additions
and
2 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
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
143 changes: 143 additions & 0 deletions
143
test/spec/idx/idxState/mocks/safari-relatesTo-fixed-response.json
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,143 @@ | ||
{ | ||
"version": "1.0.0", | ||
"stateHandle": "stateHandle", | ||
"expiresAt": "2023-10-18T18:18:41.000Z", | ||
"intent": "LOGIN", | ||
"remediation": { | ||
"type": "array", | ||
"value": [ | ||
{ | ||
"rel": [ | ||
"create-form" | ||
], | ||
"name": "identify", | ||
"href": "http://localhost:3000.com/idp/idx/identify", | ||
"method": "POST", | ||
"produces": "application/ion+json; okta-version=1.0.0", | ||
"value": [ | ||
{ | ||
"name": "identifier", | ||
"label": "Username", | ||
"required": true | ||
}, | ||
{ | ||
"name": "rememberMe", | ||
"type": "boolean", | ||
"label": "Remember this device" | ||
}, | ||
{ | ||
"name": "stateHandle", | ||
"required": true, | ||
"value": "stateHande", | ||
"visible": false, | ||
"mutable": false | ||
} | ||
], | ||
"accepts": "application/json; okta-version=1.0.0" | ||
}, | ||
{ | ||
"rel": [ | ||
"create-form" | ||
], | ||
"name": "launch-authenticator", | ||
"relatesTo": [ | ||
"authenticatorChallenge" | ||
], | ||
"href": "http://localhost:3000.com/idp/idx/authenticators/okta-verify/launch", | ||
"method": "POST", | ||
"produces": "application/ion+json; okta-version=1.0.0", | ||
"value": [ | ||
{ | ||
"name": "rememberMe", | ||
"type": "boolean", | ||
"label": "Remember this device" | ||
}, | ||
{ | ||
"name": "stateHandle", | ||
"required": true, | ||
"value": "stateHande", | ||
"visible": false, | ||
"mutable": false | ||
} | ||
], | ||
"accepts": "application/json; okta-version=1.0.0" | ||
}, | ||
{ | ||
"rel": [ | ||
"create-form" | ||
], | ||
"name": "select-enroll-profile", | ||
"href": "http://localhost:3000.com/idp/idx/enroll", | ||
"method": "POST", | ||
"produces": "application/ion+json; okta-version=1.0.0", | ||
"value": [ | ||
{ | ||
"name": "stateHandle", | ||
"required": true, | ||
"value": "stateHande", | ||
"visible": false, | ||
"mutable": false | ||
} | ||
], | ||
"accepts": "application/json; okta-version=1.0.0" | ||
} | ||
] | ||
}, | ||
"cancel": { | ||
"rel": [ | ||
"create-form" | ||
], | ||
"name": "cancel", | ||
"href": "http://localhost:3000.com/idp/idx/cancel", | ||
"method": "POST", | ||
"produces": "application/ion+json; okta-version=1.0.0", | ||
"value": [ | ||
{ | ||
"name": "stateHandle", | ||
"required": true, | ||
"value": "stateHande", | ||
"visible": false, | ||
"mutable": false | ||
} | ||
], | ||
"accepts": "application/json; okta-version=1.0.0" | ||
}, | ||
"app": { | ||
"type": "object", | ||
"value": { | ||
"name": "okta_enduser", | ||
"label": "Okta Dashboard", | ||
"id": "srhgsefasef" | ||
} | ||
}, | ||
"authentication": { | ||
"type": "object", | ||
"value": { | ||
"protocol": "OAUTH2.0", | ||
"issuer": { | ||
"name": "Mock", | ||
"uri": "http://localhost:3000.com" | ||
}, | ||
"request": { | ||
"max_age": -1, | ||
"scope": "openid profile email", | ||
"display": "page", | ||
"response_type": "code", | ||
"redirect_uri": "http://localhost:3000.com/enduser/callback", | ||
"state": "stateValue", | ||
"code_challenge_method": "S256", | ||
"nonce": "nonceValue", | ||
"code_challenge": "code_challenge", | ||
"response_mode": "query" | ||
} | ||
} | ||
}, | ||
"authenticatorChallenge": { | ||
"type": "object", | ||
"value": { | ||
"challengeMethod": "CUSTOM_URI", | ||
"href": "http://localhost:3000/foobar", | ||
"downloadHref": "http://localhost:3000/foobar" | ||
} | ||
} | ||
} |
135 changes: 135 additions & 0 deletions
135
test/spec/idx/idxState/mocks/safari-relatesTo-response.json
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,135 @@ | ||
{ | ||
"version": "1.0.0", | ||
"stateHandle": "stateHandle", | ||
"expiresAt": "2023-10-18T18:18:41.000Z", | ||
"intent": "LOGIN", | ||
"remediation": { | ||
"type": "array", | ||
"value": [ | ||
{ | ||
"rel": [ | ||
"create-form" | ||
], | ||
"name": "identify", | ||
"href": "http://localhost:3000.com/idp/idx/identify", | ||
"method": "POST", | ||
"produces": "application/ion+json; okta-version=1.0.0", | ||
"value": [ | ||
{ | ||
"name": "identifier", | ||
"label": "Username", | ||
"required": true | ||
}, | ||
{ | ||
"name": "rememberMe", | ||
"type": "boolean", | ||
"label": "Remember this device" | ||
}, | ||
{ | ||
"name": "stateHandle", | ||
"required": true, | ||
"value": "stateHande", | ||
"visible": false, | ||
"mutable": false | ||
} | ||
], | ||
"accepts": "application/json; okta-version=1.0.0" | ||
}, | ||
{ | ||
"rel": [ | ||
"create-form" | ||
], | ||
"name": "launch-authenticator", | ||
"relatesTo": [ | ||
"authenticatorChallenge" | ||
], | ||
"href": "http://localhost:3000.com/idp/idx/authenticators/okta-verify/launch", | ||
"method": "POST", | ||
"produces": "application/ion+json; okta-version=1.0.0", | ||
"value": [ | ||
{ | ||
"name": "rememberMe", | ||
"type": "boolean", | ||
"label": "Remember this device" | ||
}, | ||
{ | ||
"name": "stateHandle", | ||
"required": true, | ||
"value": "stateHande", | ||
"visible": false, | ||
"mutable": false | ||
} | ||
], | ||
"accepts": "application/json; okta-version=1.0.0" | ||
}, | ||
{ | ||
"rel": [ | ||
"create-form" | ||
], | ||
"name": "select-enroll-profile", | ||
"href": "http://localhost:3000.com/idp/idx/enroll", | ||
"method": "POST", | ||
"produces": "application/ion+json; okta-version=1.0.0", | ||
"value": [ | ||
{ | ||
"name": "stateHandle", | ||
"required": true, | ||
"value": "stateHande", | ||
"visible": false, | ||
"mutable": false | ||
} | ||
], | ||
"accepts": "application/json; okta-version=1.0.0" | ||
} | ||
] | ||
}, | ||
"cancel": { | ||
"rel": [ | ||
"create-form" | ||
], | ||
"name": "cancel", | ||
"href": "http://localhost:3000.com/idp/idx/cancel", | ||
"method": "POST", | ||
"produces": "application/ion+json; okta-version=1.0.0", | ||
"value": [ | ||
{ | ||
"name": "stateHandle", | ||
"required": true, | ||
"value": "stateHande", | ||
"visible": false, | ||
"mutable": false | ||
} | ||
], | ||
"accepts": "application/json; okta-version=1.0.0" | ||
}, | ||
"app": { | ||
"type": "object", | ||
"value": { | ||
"name": "okta_enduser", | ||
"label": "Okta Dashboard", | ||
"id": "srhgsefasef" | ||
} | ||
}, | ||
"authentication": { | ||
"type": "object", | ||
"value": { | ||
"protocol": "OAUTH2.0", | ||
"issuer": { | ||
"name": "Mock", | ||
"uri": "http://localhost:3000.com" | ||
}, | ||
"request": { | ||
"max_age": -1, | ||
"scope": "openid profile email", | ||
"display": "page", | ||
"response_type": "code", | ||
"redirect_uri": "http://localhost:3000.com/enduser/callback", | ||
"state": "stateValue", | ||
"code_challenge_method": "S256", | ||
"nonce": "nonceValue", | ||
"code_challenge": "code_challenge", | ||
"response_mode": "query" | ||
} | ||
} | ||
} | ||
} |
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