Test info
Profile: {'openid-configuration': 'config', 'response_type': 'code', 'crypto': 'none+sign', 'registration': 'static'}
Timestamp: 2017-05-26T15:42:07Z
Test description: Trying to use authorization code twice should result in revoking previously issued access tokens [Basic, Hybrid]
Test ID: OP-OAuth-2nd-Revokes
Issuer: https://is.biocryptology.net/
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.000463 ------------ DiscoveryRequest ------------
0.000478 Provider info discover from 'https://is.biocryptology.net'
0.000485 --> URL: https://is.biocryptology.net/.well-known/openid-configuration
0.611032 ProviderConfigurationResponse: {
"authorization_endpoint": "https://is.biocryptology.net/V1/auth",
"check_session_iframe": "http://default.com",
"claims_parameter_supported": false,
"claims_supported": [
"sub",
"website",
"zoneinfo",
"email_verified",
"birthdate",
"address",
"gender",
"profile",
"iss",
"phone_number_verified",
"given_name",
"middle_name",
"locale",
"picture",
"updated_at",
"auth_time",
"name",
"nickname",
"phone_number",
"family_name",
"prefered_username",
"email"
],
"end_session_endpoint": "https://is.biocryptology.net/V1/end",
"grant_types_supported": [
"authorization_code",
"implicit"
],
"id_token_signing_alg_values_supported": [
"ES512",
"ES384",
"ES256",
"RS512",
"RS384",
"RS256",
"HS512",
"HS384",
"HS256"
],
"issuer": "https://is.biocryptology.net/",
"jwks_uri": "https://is.biocryptology.net/V1/jwks",
"registration_endpoint": "http://default.com",
"request_object_encryption_alg_values_supported": [
"RSA-OAEP",
"RSA1_5"
],
"request_object_encryption_enc_values_supported": [
"A256GCM",
"A256CBC-HS512",
"A256CBC-HS384",
"A256CBC-HS256",
"A256CBC",
"A128GCM",
"A128CBC-HS512",
"A128CBC-HS384",
"A128CBC-HS256",
"A128CBC"
],
"request_parameter_supported": true,
"request_uri_parameter_supported": false,
"require_request_uri_registration": false,
"response_modes_supported": [
"fragment",
"query",
"form_post"
],
"response_types_supported": [
"code",
"id_token",
"id_token token",
"code id_token",
"code token",
"code id_token token"
],
"revocation_endpoint": "http://default.com",
"scopes_supported": [
"phone",
"address",
"openid",
"email",
"profile"
],
"service_documentation": "http://default.com",
"subject_types_supported": [
"public"
],
"token_endpoint": "https://is.biocryptology.net/V1/token",
"token_endpoint_auth_methods_supported": [
"client_secret_basic",
"client_secret_post"
],
"userinfo_endpoint": "https://is.biocryptology.net/V1/userinfo",
"version": "3.0"
}
1.185720 JWKS: {
"keys": [
{
"alg": "RS256",
"e": "AQAB",
"kid": "aDNT9W5MMFjpnQz5NYCbZw",
"kty": "RSA",
"n": "AIARwlnHKy97bV3CxBWXwxY84ZFLTnVZxna56aqabB1C6K_t04MCZJX1ucxsN1UooIo0go52qVbJNm_yLvyM61JD8UkGQE0EmIHE1Et-DPy3Z5pEgZONUHAet_uTjr7Blhjili_aXpMZ4BfJrbF8oW6jo4Ao83cLMyn3f_LJoqEp",
"use": "sig"
},
{
"alg": "RS256",
"e": "AQAB",
"kid": "F--2fX97Rvwc0LghUHGSfg",
"kty": "RSA",
"n": "AJ0pyiUzlQqO-dyPPb_OD5YMOF_GPhut9eIItetBte0pLICZMaICu-Rm-zQkIEedlM3S3Kcg2yl8HvdJqXa9764_O3m3duQrA74Fe7U1-hynwBmtq8gLn8ae5qTbZ8nN03Y2MrW9Q24rGnkbUhwjhNs_o7dE5NlRmejRLtfzFpkB",
"use": "sig"
},
{
"alg": "RS256",
"e": "AQAB",
"kid": "RUw8ctDE3-uf0dIKyMmcCQ",
"kty": "RSA",
"n": "AI_CmTELVBkX_FtbAod88lqaQ7U-JLXchkpboj2zCRm5dXcnBKqzVItVZjRzET2Vdy9uXfD87OCyUiMRnLD_vToYwzytKaLY8kmK4_qtTbQN4Z5g1YxLHPZjKuwPKL05K2RsGh3Q7Raww8h8-pA_vrS7qzz6Dz30BEh5b2rS40Ud",
"use": "sig"
}
]
}
1.198596 ------------ AuthorizationRequest ------------
1.200321 --> URL: https://is.biocryptology.net/V1/auth?scope=openid&state=HFyqPoKKi3GHlcxy&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61018%2Fauthz_cb&response_type=code&client_id=swipe
1.200331 --> BODY: None
1.697732 <-- state=HFyqPoKKi3GHlcxy&code=TZDgNF64GQYflQY4az-tyQ
1.698186 AuthorizationResponse: {
"code": "TZDgNF64GQYflQY4az-tyQ",
"state": "HFyqPoKKi3GHlcxy"
}
1.698529 ------------ AccessTokenRequest ------------
1.700327 --> URL: https://is.biocryptology.net/V1/token
1.700337 --> BODY: code=TZDgNF64GQYflQY4az-tyQ&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61018%2Fauthz_cb&grant_type=authorization_code&state_hash=pKNGYBWnjG9hndrf8KeoBks5PhwKeYpoJdQl5ZU2SAE%3D
1.700348 --> HEADERS: {'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': 'Basic c3dpcGU6c3dpcGU='}
2.348034 <-- STATUS: 200
2.348186 <-- BODY: {"access_token":"KapX7_pGhHxcCXOc0zXfeQ","expires_in":3600,"refresh_token":"OA_x-A4nmUikX9V1WXyAcw","scope":"openid","token_type":"Bearer","id_token":"eyJhbGciOiJSUzI1NiIsImtpZCI6IkYtLTJmWDk3UnZ3YzBMZ2hVSEdTZmcifQ.eyJhY3IiOiIwIiwiYXVkIjoic3dpcGUiLCJhdXRoX3RpbWUiOjE0OTU4MTMzMjUsImF6cCI6InN3aXBlIiwiYXRfaGFzaCI6IjBfRWUwLXh6QjRDTjNrU0o3dmNUcXciLCJjX2hhc2giOiJKQkxIQjlYR1E4S0FJV2puZDU5MTlBIiwiaWF0IjoxNDk1ODEzMzI1LCJleHAiOjE0OTU4MTY5MjUsImlzcyI6Imh0dHBzOi8vaXMuYmlvY3J5cHRvbG9neS5uZXQvIiwic3ViIjoiTVEifQ.YhRlwX3gBKZXQQ6yUJ6v007NpzckcfVl-VajIunq42dZeluUbhjmMux993BJ8GHQcdPZr5Uq5FTHz_z-8hvRzfJkcoYX2k5dFS1UVwONlkEEX2JNirKTENJaR53Ck2-jP-kf3C_r1vWf8qjaHmGifqTpgBuOWS0BUpDhRKwx89Q"}
2.937496 AccessTokenResponse: {
"access_token": "KapX7_pGhHxcCXOc0zXfeQ",
"expires_in": 3600,
"id_token": {
"claims": {
"acr": "0",
"at_hash": "0_Ee0-xzB4CN3kSJ7vcTqw",
"aud": [
"swipe"
],
"auth_time": 1495813325,
"azp": "swipe",
"c_hash": "JBLHB9XGQ8KAIWjnd5919A",
"exp": 1495816925,
"iat": 1495813325,
"iss": "https://is.biocryptology.net/",
"sub": "MQ"
},
"jws header parameters": {
"alg": "RS256",
"kid": "F--2fX97Rvwc0LghUHGSfg"
}
},
"refresh_token": "OA_x-A4nmUikX9V1WXyAcw",
"scope": "openid",
"token_type": "Bearer"
}
2.947653 ------------ AccessTokenRequest ------------
2.949670 --> URL: https://is.biocryptology.net/V1/token
2.949685 --> BODY: code=TZDgNF64GQYflQY4az-tyQ&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61018%2Fauthz_cb&grant_type=authorization_code&state_hash=pKNGYBWnjG9hndrf8KeoBks5PhwKeYpoJdQl5ZU2SAE%3D
2.949702 --> HEADERS: {'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': 'Basic c3dpcGU6c3dpcGU='}
3.594897 <-- STATUS: 400
3.595116 ErrorResponse: {
"error": "access_denied",
"error_description": "Code is invalid",
"error_uri": null
}
3.604463 ------------ UserInfoRequest ------------
3.604795 --> URL: https://is.biocryptology.net/V1/userinfo
3.604802 --> BODY: None
3.604812 --> HEADERS: {'Authorization': u'Bearer KapX7_pGhHxcCXOc0zXfeQ'}
4.292426 <-- STATUS: 400
4.292729 ErrorResponse: {
"error": "access_denied",
"error_description": "unable to retrieve id token",
"error_uri": null
}
4.302674 ==== END ====
Result
PASSED