Test info
Profile: {'openid-configuration': 'no-config',
'response_type': 'code', 'crypto': 'none', 'registration':
'static'}
Timestamp: 2016-01-28T08:18:09Z
Test
description: Trying to use authorization code twice with 30 seconds in
between uses must result in an error [Basic, Hybrid]
Test ID:
OP-OAuth-2nd-30s
Issuer:
http://dualstack.3a-test-1256922533.ap-northeast-1.elb.amazonaws.com:8081/
Test output
__AuthorizationRequest:pre__
[check-response-type]
status: OK
description: Checks that the asked for response type are among the supported
[check-endpoint]
status: OK
description: Checks that the necessary endpoint exists at a server
__After completing the test flow:__
[verify-response]
status: OK
description: Checks that the last response was one of a possible set of OpenID Connect Responses
__X:==== END ====__
Trace output
31.464264 ------------ AuthorizationRequest ------------
31.464698 --> URL: http://dualstack.3a-test-1256922533.ap-northeast-1.elb.amazonaws.com:8081/oc_v/AuthorizationEndpoint?scope=openid&state=LHdOxUfWOpDUNeuz&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60347%2Fauthz_cb&response_type=code&client_id=CLIANT9999
31.464705 --> BODY: None
80.187357 <-- state=LHdOxUfWOpDUNeuz&code=UQpQuJn6aWeCRpOT
80.187832 AuthorizationResponse: {
"code": "UQpQuJn6aWeCRpOT",
"state": "LHdOxUfWOpDUNeuz"
}
80.188217 ------------ AccessTokenRequest ------------
80.188623 --> URL: http://dualstack.3a-test-1256922533.ap-northeast-1.elb.amazonaws.com:8081/oc_v/AuthorizationCode/
80.188630 --> BODY: code=UQpQuJn6aWeCRpOT&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60347%2Fauthz_cb
80.188643 --> HEADERS: {'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': u'Basic Q0xJQU5UOTk5OTpjbGlhbnRfOTk5OQ=='}
80.818149 <-- STATUS: 200
80.818201 <-- BODY: {"scope":"","expires_in":3600,"token_type":"Bearer","id_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJleHAiOjE0NTM5NzI2NTgsImF6cCI6IkNMSUFOVDk5OTkiLCJzdWIiOiJzZWlub3UxMjg0NiIsImF1ZCI6IkNMSUFOVDk5OTkiLCJpc3MiOiJodHRwczpcL1wvZHVhbHN0YWNrLjNhLXRlc3QtMTI1NjkyMjUzMy5hcC1ub3J0aGVhc3QtMS5lbGIuYW1hem9uYXdzLmNvbTo4MDgxXC8iLCJpYXQiOjE0NTM5NjkwNTh9.","access_token":"YEwuiiyDZjPWPjLef1vHhUBS0hyeMYVo"}
80.819820 AccessTokenResponse: {
"access_token": "YEwuiiyDZjPWPjLef1vHhUBS0hyeMYVo",
"expires_in": 3600,
"id_token": {
"claims": {
"aud": [
"CLIANT9999"
],
"azp": "CLIANT9999",
"exp": 1453972658,
"iat": 1453969058,
"iss": "https://dualstack.3a-test-1256922533.ap-northeast-1.elb.amazonaws.com:8081/",
"sub": "seinou12846"
},
"jws header parameters": {
"alg": "none",
"typ": "JWT"
}
},
"token_type": "Bearer"
}
110.879570 ------------ AccessTokenRequest ------------
110.880029 --> URL: http://dualstack.3a-test-1256922533.ap-northeast-1.elb.amazonaws.com:8081/oc_v/AuthorizationCode/
110.880036 --> BODY: code=UQpQuJn6aWeCRpOT&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60347%2Fauthz_cb
110.880053 --> HEADERS: {'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': u'Basic Q0xJQU5UOTk5OTpjbGlhbnRfOTk5OQ=='}
111.293710 <-- STATUS: 400
111.293850 ErrorResponse: {
"error": "invalid_grant",
"error_description": "\u8a8d\u53ef\u30b3\u30fc\u30c9\u60c5\u5831\u53d6\u5f97\u30c7\u30fc\u30bf\u672a\u5b58\u5728\u30a8\u30e9\u30fc",
"error_uri": "error_uri"
}
111.303404 ==== END ====
Result
PASSED