Test info

Profile: {'openid-configuration': 'no-config', 'response_type': 'code', 'crypto': 'none', 'registration': 'static'}
Timestamp: 2016-01-28T08:11:30Z
Test description: Trying to use authorization code twice should result in an error [Basic, Hybrid]
Test ID: OP-OAuth-2nd
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


0.001731 ------------ AuthorizationRequest ------------
0.002136 --> URL: http://dualstack.3a-test-1256922533.ap-northeast-1.elb.amazonaws.com:8081/oc_v/AuthorizationEndpoint?scope=openid&state=hLjhXL3GZig9u2N9&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60347%2Fauthz_cb&response_type=code&client_id=CLIANT9999
0.002141 --> BODY: None
69.984977 <-- state=hLjhXL3GZig9u2N9&code=LSLDX6QyOJ76wpAE
69.985411 AuthorizationResponse: {
  "code": "LSLDX6QyOJ76wpAE",
  "state": "hLjhXL3GZig9u2N9"
}
69.985795 ------------ AccessTokenRequest ------------
69.986211 --> URL: http://dualstack.3a-test-1256922533.ap-northeast-1.elb.amazonaws.com:8081/oc_v/AuthorizationCode/
69.986217 --> BODY: code=LSLDX6QyOJ76wpAE&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60347%2Fauthz_cb
69.986229 --> HEADERS: {'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': u'Basic Q0xJQU5UOTk5OTpjbGlhbnRfOTk5OQ=='}
70.459812 <-- STATUS: 200
70.459864 <-- BODY: {"scope":"","expires_in":3600,"token_type":"Bearer","id_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJleHAiOjE0NTM5NzIyODksImF6cCI6IkNMSUFOVDk5OTkiLCJzdWIiOiJzZWlub3UxMjg0NiIsImF1ZCI6IkNMSUFOVDk5OTkiLCJpc3MiOiJodHRwczpcL1wvZHVhbHN0YWNrLjNhLXRlc3QtMTI1NjkyMjUzMy5hcC1ub3J0aGVhc3QtMS5lbGIuYW1hem9uYXdzLmNvbTo4MDgxXC8iLCJpYXQiOjE0NTM5Njg2ODl9.","access_token":"ZFgqzhreCdH5Vs04S2uk86t39P0u8Mvi"}
70.461815 AccessTokenResponse: {
  "access_token": "ZFgqzhreCdH5Vs04S2uk86t39P0u8Mvi",
  "expires_in": 3600,
  "id_token": {
    "claims": {
      "aud": [
        "CLIANT9999"
      ],
      "azp": "CLIANT9999",
      "exp": 1453972289,
      "iat": 1453968689,
      "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"
}
70.472544 ------------ AccessTokenRequest ------------
70.473122 --> URL: http://dualstack.3a-test-1256922533.ap-northeast-1.elb.amazonaws.com:8081/oc_v/AuthorizationCode/
70.473129 --> BODY: code=LSLDX6QyOJ76wpAE&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60347%2Fauthz_cb
70.473146 --> HEADERS: {'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': u'Basic Q0xJQU5UOTk5OTpjbGlhbnRfOTk5OQ=='}
70.919843 <-- STATUS: 400
70.919987 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"
}
70.930227 ==== END ====

Result

PASSED