[Openid-specs-ab] Issue #45: OP-M-08 (Incorrect registration of sector_identifier_uri) Invalid result displayed (openid/certification)
Edmund Jay
issues-reply at bitbucket.org
Tue Feb 3 23:28:32 UTC 2015
New issue 45: OP-M-08 (Incorrect registration of sector_identifier_uri) Invalid result displayed
https://bitbucket.org/openid/certification/issue/45/op-m-08-incorrect-registration-of
Edmund Jay:
The server returns an error but it looks like the test is expecting an HTTP status code of 200 instead of a 400 as specified by spec.
```
#!text
Test info
Profile: {'profile': 'C', 'sub': 'none', 'register': True, 'discover': True, 'extra': False}
Test ID: OP-M-08
Issuer: https://connect.openid4.us
Test output
__RegistrationRequest:post__
[check]
status: INFORMATION
description: Registration Response
info: {"error":"invalid_client_metadata","error_description":"sector_identifier_uri count mismatch"}
__After completing the test flow:__
[check-http-response]
status: CRITICAL
description: Checks that the HTTP response status is within the 200 or 300 range
info: {"error_description": "sector_identifier_uri count mismatch", "error": "invalid_client_metadata"}
Trace output
0.000178 ------------ DiscoveryRequest ------------
0.000191 Provider info discover from 'https://connect.openid4.us/'
0.000197 --> URL: https://connect.openid4.us/.well-known/openid-configuration
0.820410 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.569892 JWKS: {
"keys": [
{
"e": "AQAB",
"kid": "ABOP-00",
"kty": "RSA",
"n": "tf_sB4M0sHearRLzz1q1JRgRdRnwk0lz-IcVDFlpp2dtDVyA-ZM8Tu1swp7upaTNykf7cp3Ne_6uW3JiKvRMDdNdvHWCzDHmbmZWGdnFF9Ve-D1cUxj4ETVpUM7AIXWbGs34fUNYl3Xzc4baSyvYbc3h6iz8AIdb_1bQLxJsHBi-ydg3NMJItgQJqBiwCmQYCOnJlekR-Ga2a5XlIx46Wsj3Pz0t0dzM8gVSU9fU3QrKKzDFCoFHTgig1YZNNW5W2H6QwANL5h-nbgre5sWmDmdnfiU6Pj5GOQDmp__rweinph8OAFNF6jVqrRZ3QJEmMnO42naWOsxV2FAUXafksQ"
}
]
}
1.570989 ------------ RegistrationRequest ------------
1.571477 --> URL: https://connect.openid4.us/abop/op.php/registration
1.571483 --> BODY: {"token_endpoint_auth_method": "client_secret_jwt", "subject_type": "pairwise", "jwks_uri": "https://oictest.umdc.umu.se:8102/export/jwk_8102.json", "request_object_encryption_enc": "A128CBC-HS256", "application_type": "web", "grant_types": ["implicit"], "redirect_uris": ["https://oictest.umdc.umu.se:8102/authz_cb", "https://oictest.umdc.umu.se:8102/cb"], "response_types": ["id_token"], "require_auth_time": true, "scope": ["openid", "profile", "email", "address", "phone"], "request_object_signing_alg": "RS256", "default_max_age": 3600, "sector_identifier_uri": "https://oictest.umdc.umu.se:8102/export/siu.json", "request_object_encryption_alg": "RSA1_5"}
1.571491 --> HEADERS: {'Content-type': 'application/json'}
3.391116 <-- STATUS: 400
3.391234 ErrorResponse: {
"error": "invalid_client_metadata",
"error_description": "sector_identifier_uri count mismatch"
}
3.392033 [ERROR] WHERE: check-http-response
3.392037 [ERROR] STATUS:CRITICAL
3.392039 [ERROR] HTTP STATUS: 400
3.392040 [ERROR] INFO: {"error_description": "sector_identifier_uri count mismatch", "error": "invalid_client_metadata"}
3.392288 [ERROR] FatalError:{"error_description": "sector_identifier_uri count mismatch", "error": "invalid_client_metadata"}
Result
FAILED
```
More information about the Openid-specs-ab
mailing list