[Openid-specs-ab] Issue #43: OP-Q-04 (Requesting ID Token with Email claims) Show wrong result (openid/certification)
Edmund Jay
issues-reply at bitbucket.org
Tue Feb 3 23:20:07 UTC 2015
New issue 43: OP-Q-04 (Requesting ID Token with Email claims) Show wrong result
https://bitbucket.org/openid/certification/issue/43/op-q-04-requesting-id-token-with-email
Edmund Jay:
The ID Token contains an email claim but the result shows it failed.
Below is the trace:
```
#!text
Test info
Profile: {'profile': 'C', 'sub': 'none', 'register': True, 'discover': True, 'extra': False}
Test ID: OP-Q-04
Issuer: https://connect.openid4.us
Test output
__RegistrationRequest:post__
[check]
status: INFORMATION
description: Registration Response
info: {"client_id":"ffWCJqmy4Pd-K-NXMw6s8g","client_secret":"KSNyZoM3GUau1A","registration_access_token":"l3k9aUyj3Pp_nQ","registration_client_uri":"https:\/\/connect.openid4.us\/abop\/op.php\/client\/UglpUsnUJs6IQ_bA1yRrHg","client_id_issued_at":1423005442,"client_secret_expires_at":0,"registration_client_uri_path":"UglpUsnUJs6IQ_bA1yRrHg","application_type":"web","redirect_uris":["https:\/\/oictest.umdc.umu.se:8102\/authz_cb","https:\/\/oictest.umdc.umu.se:8102\/cb"],"jwks_uri":"https:\/\/oictest.umdc.umu.se:8102\/export\/jwk_8102.json","subject_type":"public","default_max_age":3600,"require_auth_time":true,"response_types":["code"],"grant_types":["authorization_code"]}
__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:__
[check-http-response]
status: OK
description: Checks that the HTTP response status is within the 200 or 300 range
Trace output
0.000501 ------------ DiscoveryRequest ------------
0.000538 Provider info discover from 'https://connect.openid4.us/'
0.000543 --> URL: https://connect.openid4.us/.well-known/openid-configuration
0.833430 ProviderConfigurationResponse: {
"authorization_endpoint": "https://connect.openid4.us/abop/op.php/auth",
"check_session_iframe": "https://connect.openid4.us/abop/opframe.php/1",
"claim_types_supported": [
"normal"
],
"claims_locales_supported": [
"en-US"
],
"claims_parameter_supported": true,
"claims_supported": [
"name",
"given_name",
"family_name",
"middle_name",
"nickname",
"preferred_username",
"profile",
"picture",
"website",
"email",
"email_verified",
"gender",
"birthdate",
"zoneinfo",
"locale",
"phone_number",
"phone_number_verified",
"address",
"updated_at"
],
"display_values_supported": [
"page"
],
"end_session_endpoint": "https://connect.openid4.us/abop/op.php/endsession",
"grant_types_supported": [
"authorization_code",
"implicit"
],
"id_token_encryption_alg_values_supported": [
"RSA1_5",
"RSA-OAEP"
],
"id_token_encryption_enc_values_supported": [
"A128CBC-HS256",
"A256CBC-HS512",
"A128GCM",
"A256GCM"
],
"id_token_signing_alg_values_supported": [
"none",
"HS256",
"HS384",
"HS512",
"RS256",
"RS384",
"RS512"
],
"issuer": "https://connect.openid4.us",
"jwks_uri": "https://connect.openid4.us/connect4us.jwk",
"op_policy_uri": "https://connect.openid4.us/abop/op.php/op_policy",
"op_tos_uri": "https://connect.openid4.us/abop/op.php/op_tos",
"registration_endpoint": "https://connect.openid4.us/abop/op.php/registration",
"request_object_encryption_alg_values_supported": [
"RSA1_5",
"RSA-OAEP"
],
"request_object_encryption_enc_values_supported": [
"A128CBC-HS256",
"A256CBC-HS512",
"A128GCM",
"A256GCM"
],
"request_object_signing_alg_values_supported": [
"none",
"HS256",
"HS384",
"HS512",
"RS256",
"RS384",
"RS512"
],
"request_parameter_supported": true,
"request_uri_parameter_supported": true,
"require_request_uri_registration": false,
"response_types_supported": [
"code",
"code token",
"code id_token",
"token",
"token id_token",
"code token id_token",
"id_token"
],
"scopes_supported": [
"openid",
"profile",
"email",
"address",
"phone",
"offline_access"
],
"service_documentation": "https://connect.openid4.us/abop/op.php/servicedocs",
"subject_types_supported": [
"public",
"pairwise"
],
"token_endpoint": "https://connect.openid4.us/abop/op.php/token",
"token_endpoint_auth_methods_supported": [
"client_secret_post",
"client_secret_basic",
"client_secret_jwt",
"private_key_jwt"
],
"token_endpoint_auth_signing_alg_values_supported": [
"none",
"HS256",
"HS384",
"HS512",
"RS256",
"RS384",
"RS512"
],
"ui_locales_supported": [
"en-US"
],
"userinfo_encryption_alg_values_supported": [
"RSA1_5",
"RSA-OAEP"
],
"userinfo_encryption_enc_values_supported": [
"A128CBC-HS256",
"A256CBC-HS512",
"A128GCM",
"A256GCM"
],
"userinfo_endpoint": "https://connect.openid4.us/abop/op.php/userinfo",
"userinfo_signing_alg_values_supported": [
"none",
"HS256",
"HS384",
"HS512",
"RS256",
"RS384",
"RS512"
],
"version": "3.0"
}
1.574127 JWKS: {
"keys": [
{
"e": "AQAB",
"kid": "ABOP-00",
"kty": "RSA",
"n": "tf_sB4M0sHearRLzz1q1JRgRdRnwk0lz-IcVDFlpp2dtDVyA-ZM8Tu1swp7upaTNykf7cp3Ne_6uW3JiKvRMDdNdvHWCzDHmbmZWGdnFF9Ve-D1cUxj4ETVpUM7AIXWbGs34fUNYl3Xzc4baSyvYbc3h6iz8AIdb_1bQLxJsHBi-ydg3NMJItgQJqBiwCmQYCOnJlekR-Ga2a5XlIx46Wsj3Pz0t0dzM8gVSU9fU3QrKKzDFCoFHTgig1YZNNW5W2H6QwANL5h-nbgre5sWmDmdnfiU6Pj5GOQDmp__rweinph8OAFNF6jVqrRZ3QJEmMnO42naWOsxV2FAUXafksQ"
}
]
}
1.574712 ------------ RegistrationRequest ------------
1.575017 --> URL: https://connect.openid4.us/abop/op.php/registration
1.575023 --> BODY: {"subject_type": "public", "jwks_uri": "https://oictest.umdc.umu.se:8102/export/jwk_8102.json", "application_type": "web", "grant_types": ["authorization_code"], "redirect_uris": ["https://oictest.umdc.umu.se:8102/authz_cb", "https://oictest.umdc.umu.se:8102/cb"], "response_types": ["code"], "require_auth_time": true, "scope": ["openid", "profile", "email", "address", "phone"], "default_max_age": 3600}
1.575028 --> HEADERS: {'Content-type': 'application/json'}
2.504454 <-- STATUS: 200
2.504520 <-- BODY: {"client_id":"ffWCJqmy4Pd-K-NXMw6s8g","client_secret":"KSNyZoM3GUau1A","registration_access_token":"l3k9aUyj3Pp_nQ","registration_client_uri":"https:\/\/connect.openid4.us\/abop\/op.php\/client\/UglpUsnUJs6IQ_bA1yRrHg","client_id_issued_at":1423005442,"client_secret_expires_at":0,"registration_client_uri_path":"UglpUsnUJs6IQ_bA1yRrHg","application_type":"web","redirect_uris":["https:\/\/oictest.umdc.umu.se:8102\/authz_cb","https:\/\/oictest.umdc.umu.se:8102\/cb"],"jwks_uri":"https:\/\/oictest.umdc.umu.se:8102\/export\/jwk_8102.json","subject_type":"public","default_max_age":3600,"require_auth_time":true,"response_types":["code"],"grant_types":["authorization_code"]}
2.504949 RegistrationResponse: {
"application_type": "web",
"client_id": "ffWCJqmy4Pd-K-NXMw6s8g",
"client_id_issued_at": 1423005442,
"client_secret": "KSNyZoM3GUau1A",
"client_secret_expires_at": 0,
"default_max_age": 3600,
"grant_types": [
"authorization_code"
],
"jwks_uri": "https://oictest.umdc.umu.se:8102/export/jwk_8102.json",
"redirect_uris": [
"https://oictest.umdc.umu.se:8102/authz_cb",
"https://oictest.umdc.umu.se:8102/cb"
],
"registration_access_token": "l3k9aUyj3Pp_nQ",
"registration_client_uri": "https://connect.openid4.us/abop/op.php/client/UglpUsnUJs6IQ_bA1yRrHg",
"registration_client_uri_path": "UglpUsnUJs6IQ_bA1yRrHg",
"require_auth_time": true,
"response_types": [
"code"
],
"subject_type": "public"
}
2.505939 ------------ AuthorizationRequest ------------
2.506305 --> URL: https://connect.openid4.us/abop/op.php/auth?state=35X7TE4vQTHUrTdc&redirect_uri=https%3A%2F%2Foictest.umdc.umu.se%3A8102%2Fauthz_cb&response_type=code&client_id=ffWCJqmy4Pd-K-NXMw6s8g&claims=%7B%22id_token%22%3A+%7B%22email%22%3A+%22%7B%5C%22essential%5C%22%3A+true%7D%22%7D%7D&scope=openid
2.506311 --> BODY: None
4.429110 <-- code=7PAKAV1rTX0SCZPC8LoNoctHPGPa0OfZC2Z6ZFmO6rI&state=35X7TE4vQTHUrTdc&session_state=ed293d1bed070bb891ec08db58d303b597bcac5fb99c50c2cb12e52fa24b3e24.523c541950ec6ef280690a93c53762be
4.429346 AuthorizationResponse: {
"code": "7PAKAV1rTX0SCZPC8LoNoctHPGPa0OfZC2Z6ZFmO6rI",
"session_state": "ed293d1bed070bb891ec08db58d303b597bcac5fb99c50c2cb12e52fa24b3e24.523c541950ec6ef280690a93c53762be",
"state": "35X7TE4vQTHUrTdc"
}
4.429524 ------------ AccessTokenRequest ------------
4.429755 --> URL: https://connect.openid4.us/abop/op.php/token
4.429760 --> BODY: code=7PAKAV1rTX0SCZPC8LoNoctHPGPa0OfZC2Z6ZFmO6rI&grant_type=authorization_code&redirect_uri=https%3A%2F%2Foictest.umdc.umu.se%3A8102%2Fauthz_cb
4.429767 --> HEADERS: {'Content-type': 'application/x-www-form-urlencoded', 'Authorization': 'Basic ZmZXQ0pxbXk0UGQtSy1OWE13NnM4ZzpLU055Wm9NM0dVYXUxQQ=='}
5.408089 <-- STATUS: 200
5.408169 <-- BODY: {"access_token":"IdwL2f_kU89H8BzE9WRSfP7uk_kHV5GO7qbmuf0Zl30","token_type":"Bearer","expires_in":3600,"id_token":"eyJhbGciOiJSUzI1NiIsImprdSI6Imh0dHBzOlwvXC9jb25uZWN0Lm9wZW5pZDQudXNcL2Nvbm5lY3Q0dXMuandrIiwia2lkIjoiQUJPUC0wMCJ9.eyJpc3MiOiJodHRwczpcL1wvY29ubmVjdC5vcGVuaWQ0LnVzIiwic3ViIjoiYWxpY2UiLCJhdWQiOlsiZmZXQ0pxbXk0UGQtSy1OWE13NnM4ZyJdLCJleHAiOjE0MjMwMDU3NDUsImlhdCI6MTQyMzAwNTQ0NSwiYXV0aF90aW1lIjoxNDIzMDA1MzY3LCJlbWFpbCI6ImFsaWNlQHdvbmRlcmxhbmQuY29tIn0.I41kjUp7GosEM5oQMLJ_w-r42B6WdKgYC7Znp0ILZVAb7D2OQK9ncJezYVszhBPfHXsYJUh7DQg4Dzd_4VekGsMN-ao6vJD6Pmr-QQA5zHkyyrkxHVIuPhMU6fkAjxGAwSKGD-CqImD1HLrA1Do3Tnvmy-tsIiORlkEtDDqVTwksN2OnQieK5NuCWcXE1JUiU4_hUHDwA1MgludPQ9aUd4WUHZux7hO02F1YXToQoBKcw6sOQk2W2BFmwivZqGMjPNUXGml5qmkZKloHZgnJX4XkbaqaKuEQ8wcrdBuW_kDfBNoSPlxu7iwvxLG9QY0xDWV3REGlq-2Qmshtcxas2Q"}
6.156120 IdToken JWT header: {u'alg': u'RS256', u'kid': u'ABOP-00', u'jku': u'https://connect.openid4.us/connect4us.jwk'}
6.156136 AccessTokenResponse: {
"access_token": "IdwL2f_kU89H8BzE9WRSfP7uk_kHV5GO7qbmuf0Zl30",
"expires_in": 3600,
"id_token": {
"aud": [
"ffWCJqmy4Pd-K-NXMw6s8g"
],
"auth_time": 1423005367,
"email": "alice at wonderland.com",
"exp": 1423005745,
"iat": 1423005445,
"iss": "https://connect.openid4.us",
"sub": "alice"
},
"token_type": "Bearer"
}
6.157721 [ERROR] IndexError:list index out of range
Result
PASSED
```
More information about the Openid-specs-ab
mailing list