Skip to content

Commit 42f2683

Browse files
committed
Fixed manual test
1 parent 03e9c6c commit 42f2683

File tree

2 files changed

+53
-42
lines changed

2 files changed

+53
-42
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
testplans/spid-cie-oidc/implementations/spid-cie-oidc-django/input/mig-t/configured_tests
2+
/testplans/spid-cie-oidc/implementations/spid-cie-oidc-django/input/mig-t/tests/single
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,60 @@
11
{
2-
"test": {
3-
"name": "Does the OP contain iss set to the its identifier on redirect in a successful authentication",
4-
"description": "In order to check if the OP correctly handles a successful authentication request, a correct request is sent by a client and the behavior of the OP is analyzed. In particular, the client must be redirected to its redirect_uri and the redirect must have 'iss' as query parameter set to the OP's identifier",
5-
"type": "active",
6-
"sessions": [
7-
"s1"
8-
],
9-
"operations": [
10-
{
11-
"session": "s1",
12-
"action": "start"
13-
},
14-
{
15-
"action": "intercept",
16-
"from session": "s1",
17-
"then": "forward",
18-
"message type": "Entity Configuration response OP",
19-
"decode operations": [
2+
"test suite": {
3+
"name": "Single test",
4+
"description": "One test only",
5+
"filter messages": true
6+
},
7+
"tests": [
8+
{
9+
"test": {
10+
"name": "Does the OP contain iss set to the its identifier on redirect in a successful authentication",
11+
"description": "In order to check if the OP correctly handles a successful authentication request, a correct request is sent by a client and the behavior of the OP is analyzed. In particular, the client must be redirected to its redirect_uri and the redirect must have 'iss' as query parameter set to the OP's identifier",
12+
"type": "active",
13+
"sessions": [
14+
"s1"
15+
],
16+
"operations": [
2017
{
21-
"from": "body",
22-
"decode param": "[^\r\n]*",
23-
"type": "jwt",
24-
"edits": [
18+
"session": "s1",
19+
"action": "start"
20+
},
21+
{
22+
"action": "intercept",
23+
"from session": "s1",
24+
"then": "forward",
25+
"message type": "Entity Configuration response OP",
26+
"decode operations": [
2527
{
26-
"jwt from": "payload",
27-
"jwt save": "$.metadata.openid_provider.issuer",
28-
"as": "save_iss"
28+
"from": "body",
29+
"decode param": "[^\r\n]*",
30+
"type": "jwt",
31+
"edits": [
32+
{
33+
"jwt from": "payload",
34+
"jwt save": "$.metadata.openid_provider.issuer",
35+
"as": "save_iss"
36+
}
37+
]
2938
}
3039
]
31-
}
32-
]
33-
},
34-
{
35-
"action": "intercept",
36-
"from session": "session0",
37-
"then": "forward",
38-
"message type": "Authentication response",
39-
"checks": [
40+
},
4041
{
41-
"in": "head",
42-
"check": "(?<=iss=)[^ ]+?(?=\\s|&)",
43-
"contains": "save_iss",
44-
"use variable": "true"
42+
"action": "intercept",
43+
"from session": "s1",
44+
"then": "forward",
45+
"message type": "Authentication response",
46+
"checks": [
47+
{
48+
"in": "head",
49+
"check": "(?<=iss=)[^ ]+?(?=\\s|&)",
50+
"contains": "save_iss",
51+
"use variable": "true"
52+
}
53+
]
4554
}
46-
]
55+
],
56+
"result": "correct flow s1"
4757
}
48-
],
49-
"result": "correct flow s1"
50-
}
58+
}
59+
]
5160
}

0 commit comments

Comments
 (0)