By: Inderpal Singh user 28 Dec 2016 at 7:42 a.m. CST

6 Responses
Inderpal Singh gravatar
Hi, I am trying to send request through socket using uma_rp_get_gat command. My json data is: {"command":"uma_rp_get_gat","params":{"oxd_id":"a9662405-918a-4594-95e7-8c9a3fb21917","scopes":["http://photoz.example.com/dev/actions/add","http://photoz.example.com/dev/actions/view","http://photoz.example.com/dev/actions/edit"]}} Back response: {"status":"error","data":{"error":"internal_error","error_description":"Unknown internal server error occurs."}} Please let me know what is the issue in my data?

By Yuriy Zabrovarnyy staff 28 Dec 2016 at 1:22 p.m. CST

Yuriy Zabrovarnyy gravatar
Please attach following files for investigation: - oxd-server.log - oxd-default-site-config.json - oxd-conf.json

By Inderpal Singh user 28 Dec 2016 at 11:02 p.m. CST

Inderpal Singh gravatar
``` oxd-server.log ``` 2016-12-29 10:19:45,297 INFO [org.xdi.oxd.server.ServerLauncher] Starting... 2016-12-29 10:19:45,298 INFO [org.xdi.oxd.server.ServerLauncher] commit: e6faaea1aa117f23812d7dbfa135fa12cb09b192, branch: origin/version_2.4.4, build time:15.11.2016 @ 09:56:59 EST 2016-12-29 10:19:45,534 TRACE [org.xdi.oxd.server.service.ConfigurationService] Try to load configuration from system property: oxd.server.config, value: ./../conf/oxd-conf.json 2016-12-29 10:19:45,688 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration loaded successfully from system property: oxd.server.config. 2016-12-29 10:19:45,688 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration: Configuration{port=8099, timeOutInSeconds=0, jettyPort=0, startJetty=false, localhostOnly=true, useClientAuthenticationForPat=true, useClientAuthenticationForAat=true, trustAllCerts=true, keyStorePath='', keyStorePassword='', licenseId='d6bfeec7-b77f-417e-995e-bf05660ab04d', publicKey='ydEcNeUzT7Ey73oL1MrZVWLAUEAZkFJDaUurhBOX0/DXWVpSsoZLamu2M0uSb1kDro3EwetBzdtHrJ+KI+CaD0oXM4kQl0B9YSqb88R559ivLLm7OT8/S+VMzFavPUNr6dM6GxF3BqnoybUwXZEl0C3wIVWcrulYWBpTUdiAlp66asqQGLumWuor90/ndnMmNc6+NM9L/T5CGC45UIEpKUuJfH5oCP/KybinUbq02DbCCWCazvzsGcAIjpkUi3/G931S4BFaZ7p02g3kowUzoSXzFs8kdrRoKgtd2KVryLIQtR7/MR6MlkOYxZUh0PeNqhC3JTIXeik9xsECQ/JPRa2fM/MJPilmux0wSkJZt8GuvYZYINuXLFsnTuY8bTbpbMgZAFp584mtRp6BaF1VEA==', publicPassword='KN8bol2fjzPeCMOjlpIq', licensePassword='8Udn8shi73Mrk83s1JOI', supportGoogleLogout='true', stateExpirationInMinutes='5', nonceExpirationInMinutes='5'} 2016-12-29 10:19:45,702 INFO [org.xdi.oxd.server.service.ConfigurationService] Configuration directory: ./../conf 2016-12-29 10:19:45,705 TRACE [org.xdi.oxd.server.service.SiteConfigurationService] Loading site file name: oxd-default-site-config.json 2016-12-29 10:19:45,792 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: /var/www/html/oxd-server-2.4.4/bin/.oxd-license 2016-12-29 10:19:45,795 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 74-27-EA-4C-1B-BA 2016-12-29 10:19:45,796 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2016-12-29 10:19:45,796 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: /var/www/html/oxd-server-2.4.4/bin/.oxd-license 2016-12-29 10:19:45,796 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 74-27-EA-4C-1B-BA 2016-12-29 10:19:45,806 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-12-29 10:19:48,399 TRACE [org.xdi.oxd.server.license.LicenseService] License is validated successfully. 2016-12-29 10:19:48,402 TRACE [org.xdi.oxd.server.license.LicenseService] License data: LicenseMetadata{creationDate=Fri Nov 04 15:52:12 IST 2016, licenseId=null, autoupdate=true, active=true, product=oxd, licenseName='oxd-dev', expirationDate=Fri Mar 17 03:30:00 IST 2017, licenseCountLimit=9999, customerName=, emails=[]} 2016-12-29 10:19:48,406 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2016-12-29 10:19:48,406 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: /var/www/html/oxd-server-2.4.4/bin/.oxd-license 2016-12-29 10:19:48,406 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 74-27-EA-4C-1B-BA 2016-12-29 10:19:48,407 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-12-29 10:19:49,643 TRACE [org.xdi.oxd.server.license.LicenseService] License is validated successfully. 2016-12-29 10:19:49,644 TRACE [org.xdi.oxd.server.license.LicenseService] License data: LicenseMetadata{creationDate=Fri Nov 04 15:52:12 IST 2016, licenseId=null, autoupdate=true, active=true, product=oxd, licenseName='oxd-dev', expirationDate=Fri Mar 17 03:30:00 IST 2017, licenseCountLimit=9999, customerName=, emails=[]} 2016-12-29 10:19:49,646 INFO [org.xdi.oxd.server.service.SocketService] Server socket is bound to port: 8099, with timeout: 0 seconds. Start listening for notifications. 2016-12-29 10:20:32,355 DEBUG [org.xdi.oxd.server.service.SocketService] Start new SocketProcessor... 2016-12-29 10:20:32,362 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2016-12-29 10:20:32,362 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2016-12-29 10:20:32,363 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0679, commandSize: 679 2016-12-29 10:20:32,363 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"params":{"client_sector_identifier_uri":null,"grant_types":["authorization_code"],"client_name":null,"client_token_endpoint_auth_method":null,"post_logout_redirect_uri":"https://oxd-perl-example.com/logout.cgi","response_types":["code"],"authorization_redirect_uri":"https://oxd-perl-example.com/login.cgi","scope":["openid","profile","uma_protection","uma_authorization"],"client_logout_uris":null,"client_id":null,"claims_locales":null,"ui_locales":null,"contacts":["inderpal6785@gmail.com"],"acr_values":["basic"],"client_jwks_uri":null,"client_request_uris":null,"application_type":"web","client_secret":null,"op_host":"https://ce-dev2.gluu.org"},"command":"register_site"}', m_leftString=''} 2016-12-29 10:20:32,364 TRACE [org.xdi.oxd.server.Processor] Command: {"params":{"client_sector_identifier_uri":null,"grant_types":["authorization_code"],"client_name":null,"client_token_endpoint_auth_method":null,"post_logout_redirect_uri":"https://oxd-perl-example.com/logout.cgi","response_types":["code"],"authorization_redirect_uri":"https://oxd-perl-example.com/login.cgi","scope":["openid","profile","uma_protection","uma_authorization"],"client_logout_uris":null,"client_id":null,"claims_locales":null,"ui_locales":null,"contacts":["inderpal6785@gmail.com"],"acr_values":["basic"],"client_jwks_uri":null,"client_request_uris":null,"application_type":"web","client_secret":null,"op_host":"https://ce-dev2.gluu.org"},"command":"register_site"} 2016-12-29 10:20:32,428 INFO [org.xdi.oxd.server.op.RegisterSiteOperation] Creating site configuration ... 2016-12-29 10:20:32,430 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-12-29 10:20:39,934 WARN [org.apache.http.client.protocol.ResponseProcessCookies] Cookie rejected: "[version: 0][name: JSESSIONID][value: 5542C64494400AD43D2B78CA9E0E8F19][domain: ce-dev2.gluu.org][path: /oxauth/][expiry: null]". Illegal path attribute "/oxauth/". Path of origin: "/.well-known/openid-configuration" 2016-12-29 10:20:41,203 TRACE [org.xdi.oxd.server.service.DiscoveryService] Discovery response: { "issuer": "https://ce-dev2.gluu.org", "authorization_endpoint": "https://ce-dev2.gluu.org/oxauth/seam/resource/restv1/oxauth/authorize", "token_endpoint": "https://ce-dev2.gluu.org/oxauth/seam/resource/restv1/oxauth/token", "userinfo_endpoint": "https://ce-dev2.gluu.org/oxauth/seam/resource/restv1/oxauth/userinfo", "clientinfo_endpoint": "https://ce-dev2.gluu.org/oxauth/seam/resource/restv1/oxauth/clientinfo", "check_session_iframe": "https://ce-dev2.gluu.org/oxauth/opiframe", "end_session_endpoint": "https://ce-dev2.gluu.org/oxauth/seam/resource/restv1/oxauth/end_session", "jwks_uri": "https://ce-dev2.gluu.org/oxauth/seam/resource/restv1/oxauth/jwks", "registration_endpoint": "https://ce-dev2.gluu.org/oxauth/seam/resource/restv1/oxauth/register", "validate_token_endpoint": "https://ce-dev2.gluu.org/oxauth/seam/resource/restv1/oxauth/validate", "id_generation_endpoint": "https://ce-dev2.gluu.org/oxauth/seam/resource/restv1/id", "introspection_endpoint": "https://ce-dev2.gluu.org/oxauth/seam/resource/restv1/introspection", "scopes_supported": [ "org_name", "profile", "imapData", "permission", "mt_scope", "phone", "mobile_phone", "work_phone", "user_name", "email", "clientinfo", "address", "openid" ], "response_types_supported": [ "code", "code id_token", "token", "token id_token", "code token", "code token id_token", "id_token" ], "grant_types_supported": [ "authorization_code", "implicit", "urn:ietf:params:oauth:grant-type:jwt-bearer" ], "acr_values_supported": [ "u2f", "duo", "basic", "mt", "oxpush2", "simple_password_auth", "gplus", "twilio" ], "auth_level_mapping": { "100": [[ "basic", "mt" ]], "20": [["duo"]], "40": [["gplus"]], "10": [["u2f"]], "-1": [["simple_password_auth"]], "15": [[ "oxpush2", "twilio" ]] }, "subject_types_supported": [ "public", "pairwise" ], "userinfo_signing_alg_values_supported": [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ], "userinfo_encryption_alg_values_supported": [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ], "userinfo_encryption_enc_values_supported": [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ], "id_token_signing_alg_values_supported": [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ], "id_token_encryption_alg_values_supported": [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ], "id_token_encryption_enc_values_supported": [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ], "request_object_signing_alg_values_supported": [ "none", "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ], "request_object_encryption_alg_values_supported": [ "RSA1_5", "RSA-OAEP", "A128KW", "A256KW" ], "request_object_encryption_enc_values_supported": [ "A128CBC+HS256", "A256CBC+HS512", "A128GCM", "A256GCM" ], "token_endpoint_auth_methods_supported": [ "client_secret_basic", "client_secret_post", "client_secret_jwt", "private_key_jwt" ], "token_endpoint_auth_signing_alg_values_supported": [ "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512" ], "display_values_supported": [ "page", "popup" ], "claim_types_supported": ["normal"], "claims_supported": [ "birthdate", "country", "name", "email", "email_verified", "given_name", "gender", "phone_number", "inum", "family_name", "updated_at", "locale", "middle_name", "phone_mobile_number", "nickname", "oxAuthAppType", "oxAuthIdTokenSignedResponseAlg", "oxAuthRedirectURI", "oxAuthScope", "phone_number_verified", "picture", "preferred_username", "profile", "zoneinfo", "user_name", "website" ], "service_documentation": "http://gluu.org/docs", "claims_locales_supported": ["en"], "ui_locales_supported": [ "en", "es" ], "scope_to_claims_mapping": [ {"org_name": []}, {"uma_authorization": []}, {"profile": [ "name", "family_name", "given_name", "middle_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "updated_at" ]}, {"imapData": [ "imapHost", "imapPassword", "imapPort", "imapUsername" ]}, {"permission": []}, {"uma_protection": []}, {"mt_scope": []}, {"phone": [ "phone_number_verified", "phone_number" ]}, {"mobile_phone": ["phone_mobile_number"]}, {"work_phone": []}, {"user_name": ["user_name"]}, {"email": [ "email_verified", "email" ]}, {"clientinfo": [ "name", "inum", "oxAuthAppType", "oxAuthIdTokenSignedResponseAlg", "oxAuthRedirectURI", "oxAuthScope" ]}, {"address": [ "formatted", "postal_code", "street_address", "locality", "country", "region" ]}, {"openid": []} ], "claims_parameter_supported": true, "request_parameter_supported": true, "request_uri_parameter_supported": true, "require_request_uri_registration": false, "op_policy_uri": "http://ox.gluu.org/doku.php?id=oxauth:policy", "op_tos_uri": "http://ox.gluu.org/doku.php?id=oxauth:tos", "http_logout_supported": "true", "logout_session_supported": "true" } 2016-12-29 10:20:41,215 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-12-29 10:20:42,453 TRACE [org.xdi.oxd.server.op.RegisterSiteOperation] Registered client for site - client_id: @!40EA.D454.9D4F.E876!0001!ECE8.BBEF!0008!41DB.0EC4.0439.634F 2016-12-29 10:20:42,503 INFO [org.xdi.oxd.server.op.RegisterSiteOperation] Site configuration created: SiteConfiguration{acrValues=[basic], oxdId='247170e6-cc06-4aab-baff-72e672129247', opHost='https://ce-dev2.gluu.org', authorizationRedirectUri='https://oxd-perl-example.com/login.cgi', applicationType='web', sectorIdentifierUri='null', redirectUris=[https://oxd-perl-example.com/login.cgi], responseTypes=[code], clientId='@!40EA.D454.9D4F.E876!0001!ECE8.BBEF!0008!41DB.0EC4.0439.634F', clientSecret='f16521ae-a5a2-42d2-8c35-c0c1888ad190', clientJwksUri='', scope=[openid, profile, uma_protection, uma_authorization], uiLocales=[en], claimsLocales=[en], grantType=[authorization_code], contacts=[inderpal6785@gmail.com], aat=null, aatCreatedAt=null, aatExpiresIn=0, pat=null, patCreatedAt=null, patExpiresIn=0, umaProtectedResources=[], rpt=null, rptCreatedAt=null, rptExpiresIn=null, gat=null, gatCreatedAt=null, gatExpiresIn=null} 2016-12-29 10:20:42,517 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"oxd_id":"247170e6-cc06-4aab-baff-72e672129247","op_host":"https://ce-dev2.gluu.org"}} 2016-12-29 10:20:42,520 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2016-12-29 10:20:42,521 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2016-12-29 10:20:42,521 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit. 2016-12-29 10:20:42,521 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank. 2016-12-29 10:20:42,522 DEBUG [org.xdi.oxd.server.service.SocketService] Start new SocketProcessor... 2016-12-29 10:20:42,525 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2016-12-29 10:20:42,526 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2016-12-29 10:20:42,526 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0679, commandSize: 679 2016-12-29 10:20:42,526 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"command":"update_site_registration","params":{"client_logout_uris":null,"oxd_id":"247170e6-cc06-4aab-baff-72e672129247","client_jwks_uri":null,"acr_values":["basic"],"client_request_uris":null,"claims_locales":null,"ui_locales":null,"contacts":["inderpal6785@gmail.com"],"authorization_redirect_uri":"https://oxd-perl-example.com/login.cgi","response_types":["code"],"client_token_endpoint_auth_method":null,"post_logout_redirect_uri":"https://oxd-perl-example.com/logout.cgi","client_name":null,"client_secret_expires_at":3080736637943,"client_sector_identifier_uri":null,"grant_types":["authorization_code"],"scope":["openid","profile","uma_protection","uma_authorization"]}}', m_leftString=''} 2016-12-29 10:20:42,526 TRACE [org.xdi.oxd.server.Processor] Command: {"command":"update_site_registration","params":{"client_logout_uris":null,"oxd_id":"247170e6-cc06-4aab-baff-72e672129247","client_jwks_uri":null,"acr_values":["basic"],"client_request_uris":null,"claims_locales":null,"ui_locales":null,"contacts":["inderpal6785@gmail.com"],"authorization_redirect_uri":"https://oxd-perl-example.com/login.cgi","response_types":["code"],"client_token_endpoint_auth_method":null,"post_logout_redirect_uri":"https://oxd-perl-example.com/logout.cgi","client_name":null,"client_secret_expires_at":3080736637943,"client_sector_identifier_uri":null,"grant_types":["authorization_code"],"scope":["openid","profile","uma_protection","uma_authorization"]}} 2016-12-29 10:20:42,575 INFO [org.xdi.oxd.server.op.UpdateSiteOperation] Updating site configuration ... 2016-12-29 10:20:42,576 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-12-29 10:20:44,042 TRACE [org.xdi.oxd.server.op.UpdateSiteOperation] Client updated successfully. for site - client_id: @!40EA.D454.9D4F.E876!0001!ECE8.BBEF!0008!41DB.0EC4.0439.634F 2016-12-29 10:20:44,044 INFO [org.xdi.oxd.server.op.UpdateSiteOperation] Site configuration updated: SiteConfiguration{acrValues=[basic], oxdId='247170e6-cc06-4aab-baff-72e672129247', opHost='https://ce-dev2.gluu.org', authorizationRedirectUri='https://oxd-perl-example.com/login.cgi', applicationType='web', sectorIdentifierUri='null', redirectUris=[https://oxd-perl-example.com/login.cgi], responseTypes=[code], clientId='@!40EA.D454.9D4F.E876!0001!ECE8.BBEF!0008!41DB.0EC4.0439.634F', clientSecret='f16521ae-a5a2-42d2-8c35-c0c1888ad190', clientJwksUri='', scope=[openid, profile, uma_protection, uma_authorization], uiLocales=[en], claimsLocales=[en], grantType=[authorization_code], contacts=[inderpal6785@gmail.com], aat=null, aatCreatedAt=null, aatExpiresIn=0, pat=null, patCreatedAt=null, patExpiresIn=0, umaProtectedResources=[], rpt=null, rptCreatedAt=null, rptExpiresIn=null, gat=null, gatCreatedAt=null, gatExpiresIn=null} 2016-12-29 10:20:44,045 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"oxd_id":"247170e6-cc06-4aab-baff-72e672129247"}} 2016-12-29 10:20:44,045 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2016-12-29 10:20:44,045 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2016-12-29 10:20:44,046 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit. 2016-12-29 10:20:44,046 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank. 2016-12-29 10:20:44,048 DEBUG [org.xdi.oxd.server.service.SocketService] Start new SocketProcessor... 2016-12-29 10:20:44,049 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2016-12-29 10:20:44,049 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2016-12-29 10:20:44,050 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0207, commandSize: 207 2016-12-29 10:20:44,050 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"params":{"prompt":null,"hd":null,"acr_values":["basic"],"oxd_id":"247170e6-cc06-4aab-baff-72e672129247","scope":["openid","profile","uma_protection","uma_authorization"]},"command":"get_authorization_url"}', m_leftString=''} 2016-12-29 10:20:44,050 TRACE [org.xdi.oxd.server.Processor] Command: {"params":{"prompt":null,"hd":null,"acr_values":["basic"],"oxd_id":"247170e6-cc06-4aab-baff-72e672129247","scope":["openid","profile","uma_protection","uma_authorization"]},"command":"get_authorization_url"} 2016-12-29 10:20:44,090 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"authorization_url":"https://ce-dev2.gluu.org/oxauth/seam/resource/restv1/oxauth/authorize?response_type=code&client_id=@!40EA.D454.9D4F.E876!0001!ECE8.BBEF!0008!41DB.0EC4.0439.634F&redirect_uri=https://oxd-perl-example.com/login.cgi&scope=openid+profile+uma_protection+uma_authorization&state=k444jiivaipfkp9t95laaejc78&nonce=m99jsk79j184p55giqv57uptef&acr_values=basic"}} 2016-12-29 10:20:44,090 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2016-12-29 10:20:44,090 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2016-12-29 10:20:44,091 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit. 2016-12-29 10:20:44,091 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank. 2016-12-29 10:21:06,700 DEBUG [org.xdi.oxd.server.service.SocketService] Start new SocketProcessor... 2016-12-29 10:21:06,701 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2016-12-29 10:21:06,701 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2016-12-29 10:21:06,701 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0174, commandSize: 174 2016-12-29 10:21:06,701 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"command":"get_tokens_by_code","params":{"oxd_id":"247170e6-cc06-4aab-baff-72e672129247","code":"876e01d3-c281-489e-848a-8e4bd7a94292","state":"k444jiivaipfkp9t95laaejc78"}}', m_leftString=''} 2016-12-29 10:21:06,701 TRACE [org.xdi.oxd.server.Processor] Command: {"command":"get_tokens_by_code","params":{"oxd_id":"247170e6-cc06-4aab-baff-72e672129247","code":"876e01d3-c281-489e-848a-8e4bd7a94292","state":"k444jiivaipfkp9t95laaejc78"}} 2016-12-29 10:21:06,709 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-12-29 10:21:09,442 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"access_token":"79d73f48-9b94-49f7-b560-3c5363efad4d","expires_in":299,"id_token":"eyJraWQiOiI3ODFmMDQ0Ny1lODE3LTQ3MWYtOTAzMS1mYjJkYjAyYjM3ZmEiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2NlLWRldjIuZ2x1dS5vcmciLCJhdWQiOiJAITQwRUEuRDQ1NC45RDRGLkU4NzYhMDAwMSFFQ0U4LkJCRUYhMDAwOCE0MURCLjBFQzQuMDQzOS42MzRGIiwiZXhwIjoxNDgyOTkwNjY3LCJpYXQiOjE0ODI5ODcwNjcsIm5vbmNlIjoibTk5anNrNzlqMTg0cDU1Z2lxdjU3dXB0ZWYiLCJhdXRoX3RpbWUiOjE0ODI5ODcwNjIsImF0X2hhc2giOiJYMWdXQ25YM1ZyWE1qWW02eTY2c2JRIiwib3hWYWxpZGF0aW9uVVJJIjoiaHR0cHM6Ly9jZS1kZXYyLmdsdXUub3JnL294YXV0aC9vcGlmcmFtZSIsIm94T3BlbklEQ29ubmVjdFZlcnNpb24iOiJvcGVuaWRjb25uZWN0LTEuMCIsIm5hbWUiOiJSb3IgVGVzdCB1c2VyIiwiZmFtaWx5X25hbWUiOiJUZXN0IHVzZXIiLCJnaXZlbl9uYW1lIjoiUm9yIiwic3ViIjoieFU5NjZzTnNCMnV3X1REUTBZZnZNcTI5MUtNcTYzOWlzOW44VDl6WE94WSJ9.ebSbsPq4Uf9UQ1gYDuowmoM-w2dVOjjEUUVaq17O1SnJk9B7dGz7dod5bFn1tgy-RLiTjaQMptsOdiuSdEOt6GMW9ZTa6EWrL_dTyxqTVaNLVEHIwj8NA4miyoeAlzrJKKv6muGNHWkMzlPmwoMZ2QjJbWkAVmksqeEnr-fZbrG_E_RqA1r4nwobxKdyz0pxXW3U0qBJ_ZawFQnSI9lxkXYnYXrPt9pDHLpdZWl_y82OfEB0TlZQ8mEk6ek5ewm1yRpfllfYWgmS1v2NNLHW4SRxke1mIbM93J7hTsXOGmkI1AsqryuytiqHzMCjn4gLhZ3Yg4yiY7M_8gvsjm9N0g","refresh_token":"1bcd614b-7437-4042-9bb5-cd167e9f2f28","id_token_claims":{"auth_time":["1482987062"],"oxValidationURI":["https://ce-dev2.gluu.org/oxauth/opiframe"],"exp":["1482990667"],"sub":["xU966sNsB2uw_TDQ0YfvMq291KMq639is9n8T9zXOxY"],"at_hash":["X1gWCnX3VrXMjYm6y66sbQ"],"nonce":["m99jsk79j184p55giqv57uptef"],"name":["Ror Test user"],"aud":["@!40EA.D454.9D4F.E876!0001!ECE8.BBEF!0008!41DB.0EC4.0439.634F"],"iss":["https://ce-dev2.gluu.org"],"family_name":["Test user"],"oxOpenIDConnectVersion":["openidconnect-1.0"],"given_name":["Ror"],"iat":["1482987067"]}}} 2016-12-29 10:21:09,442 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2016-12-29 10:21:09,442 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2016-12-29 10:21:09,442 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit. 2016-12-29 10:21:09,442 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank. 2016-12-29 10:21:09,446 DEBUG [org.xdi.oxd.server.service.SocketService] Start new SocketProcessor... 2016-12-29 10:21:09,447 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2016-12-29 10:21:09,447 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2016-12-29 10:21:09,447 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0140, commandSize: 140 2016-12-29 10:21:09,447 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"params":{"oxd_id":"247170e6-cc06-4aab-baff-72e672129247","access_token":"79d73f48-9b94-49f7-b560-3c5363efad4d"},"command":"get_user_info"}', m_leftString=''} 2016-12-29 10:21:09,447 TRACE [org.xdi.oxd.server.Processor] Command: {"params":{"oxd_id":"247170e6-cc06-4aab-baff-72e672129247","access_token":"79d73f48-9b94-49f7-b560-3c5363efad4d"},"command":"get_user_info"} 2016-12-29 10:21:09,451 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-12-29 10:21:10,680 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"claims":{"sub":["xU966sNsB2uw_TDQ0YfvMq291KMq639is9n8T9zXOxY"],"name":["Ror Test user"],"family_name":["Test user"],"given_name":["Ror"]}}} 2016-12-29 10:21:10,681 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2016-12-29 10:21:10,681 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2016-12-29 10:21:10,681 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit. 2016-12-29 10:21:10,681 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank. 2016-12-29 10:21:34,981 DEBUG [org.xdi.oxd.server.service.SocketService] Start new SocketProcessor... 2016-12-29 10:21:34,982 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2016-12-29 10:21:34,982 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2016-12-29 10:21:34,982 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0572, commandSize: 572 2016-12-29 10:21:34,982 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"params":{"resources":[{"path":"/photo","conditions":[{"ticketScopes":["https://photoz.example.com/dev/actions/view"],"scopes":["https://photoz.example.com/dev/actions/view"],"httpMethods":["GET"]},{"scopes":["https://photoz.example.com/dev/actions/add"],"httpMethods":["POST"],"ticketScopes":["https://photoz.example.com/dev/actions/add"]},{"ticketScopes":["https://photoz.example.com/dev/actions/remove"],"scopes":["https://photoz.example.com/dev/actions/remove"],"httpMethods":["DELETE"]}]}],"oxd_id":"247170e6-cc06-4aab-baff-72e672129247"},"command":"uma_rs_protect"}', m_leftString=''} 2016-12-29 10:21:34,982 TRACE [org.xdi.oxd.server.Processor] Command: {"params":{"resources":[{"path":"/photo","conditions":[{"ticketScopes":["https://photoz.example.com/dev/actions/view"],"scopes":["https://photoz.example.com/dev/actions/view"],"httpMethods":["GET"]},{"scopes":["https://photoz.example.com/dev/actions/add"],"httpMethods":["POST"],"ticketScopes":["https://photoz.example.com/dev/actions/add"]},{"ticketScopes":["https://photoz.example.com/dev/actions/remove"],"scopes":["https://photoz.example.com/dev/actions/remove"],"httpMethods":["DELETE"]}]}],"oxd_id":"247170e6-cc06-4aab-baff-72e672129247"},"command":"uma_rs_protect"} 2016-12-29 10:21:36,163 WARN [org.apache.http.client.protocol.ResponseProcessCookies] Cookie rejected: "[version: 0][name: JSESSIONID][value: 48FDB8AC7C99EA67C8A7786449F4FD85][domain: ce-dev2.gluu.org][path: /oxauth/][expiry: null]". Illegal path attribute "/oxauth/". Path of origin: "/.well-known/uma-configuration" 2016-12-29 10:21:36,206 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2016-12-29 10:21:37,547 TRACE [org.xdi.oxd.server.service.UmaTokenService] Obtained token with client authentication: UmaToken{token='5acc95ee-d073-4e70-a9dc-85d145eece3c', refreshToken='null', expiresIn=299} 2016-12-29 10:21:37,862 ERROR [org.xdi.oxd.rs.protect.resteasy.ResourceRegistrar] Error status 406 Not Acceptable returned org.jboss.resteasy.client.ClientResponseFailure: Error status 406 Not Acceptable returned at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:523) at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:514) at org.jboss.resteasy.client.core.BaseClientResponse.checkFailureStatus(BaseClientResponse.java:508) at org.jboss.resteasy.client.core.extractors.BodyEntityExtractor.extractEntity(BodyEntityExtractor.java:38) at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:126) at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:88) at com.sun.proxy.$Proxy46.addResourceSet(Unknown Source) at org.xdi.oxd.rs.protect.resteasy.ResourceRegistrar.register(ResourceRegistrar.java:89) at org.xdi.oxd.rs.protect.resteasy.ResourceRegistrar.register(ResourceRegistrar.java:50) at org.xdi.oxd.server.op.RsProtectOperation.execute(RsProtectOperation.java:58) at org.xdi.oxd.server.op.RsProtectOperation.execute(RsProtectOperation.java:31) at org.xdi.oxd.server.Processor.process(Processor.java:80) at org.xdi.oxd.server.Processor.process(Processor.java:55) at org.xdi.oxd.server.SocketProcessor.run(SocketProcessor.java:60) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) 2016-12-29 10:21:37,865 ERROR [org.xdi.oxd.server.Processor] Error status 406 Not Acceptable returned org.jboss.resteasy.client.ClientResponseFailure: Error status 406 Not Acceptable returned at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:523) at org.jboss.resteasy.client.core.BaseClientResponse.createResponseFailure(BaseClientResponse.java:514) at org.jboss.resteasy.client.core.BaseClientResponse.checkFailureStatus(BaseClientResponse.java:508) at org.jboss.resteasy.client.core.extractors.BodyEntityExtractor.extractEntity(BodyEntityExtractor.java:38) at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:126) at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:88) at com.sun.proxy.$Proxy46.addResourceSet(Unknown Source) at org.xdi.oxd.rs.protect.resteasy.ResourceRegistrar.register(ResourceRegistrar.java:89) at org.xdi.oxd.rs.protect.resteasy.ResourceRegistrar.register(ResourceRegistrar.java:50) at org.xdi.oxd.server.op.RsProtectOperation.execute(RsProtectOperation.java:58) at org.xdi.oxd.server.op.RsProtectOperation.execute(RsProtectOperation.java:31) at org.xdi.oxd.server.Processor.process(Processor.java:80) at org.xdi.oxd.server.Processor.process(Processor.java:55) at org.xdi.oxd.server.SocketProcessor.run(SocketProcessor.java:60) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) 2016-12-29 10:21:37,865 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"error","data":{"error":"internal_error","error_description":"Unknown internal server error occurs."}} 2016-12-29 10:21:37,865 ERROR [org.xdi.oxd.server.SocketProcessor] Quit. Enable to process command. ``` oxd-conf.json ``` { "port":8099, "localhost_only":true, "time_out_in_seconds":0, "use_client_authentication_for_pat":true, "use_client_authentication_for_aat":true, "trust_all_certs":true, "trust_store_path":"", "trust_store_password":"", "license_id":"d6bfeec7-b77f-417e-995e-bf05660ab04d", "public_key":"ydEcNeUzT7Ey73oL1MrZVWLAUEAZkFJDaUurhBOX0/DXWVpSsoZLamu2M0uSb1kDro3EwetBzdtHrJ+KI+CaD0oXM4kQl0B9YSqb88R559ivLLm7OT8/S+VMzFavPUNr6dM6GxF3BqnoybUwXZEl0C3wIVWcrulYWBpTUdiAlp66asqQGLumWuor90/ndnMmNc6+NM9L/T5CGC45UIEpKUuJfH5oCP/KybinUbq02DbCCWCazvzsGcAIjpkUi3/G931S4BFaZ7p02g3kowUzoSXzFs8kdrRoKgtd2KVryLIQtR7/MR6MlkOYxZUh0PeNqhC3JTIXeik9xsECQ/JPRa2fM/MJPilmux0wSkJZt8GuvYZYINuXLFsnTuY8bTbpbMgZAFp584mtRp6BaF1VEA==", "public_password":"KN8bol2fjzPeCMOjlpIq", "license_password":"8Udn8shi73Mrk83s1JOI", "support-google-logout": true, "state_expiration_in_minutes":5, "nonce_expiration_in_minutes":5 } ``` oxd-default-site-config.json ``` { "op_host":"https://ce-dev2.gluu.org", "authorization_redirect_uri":"", "post_logout_redirect_uri":"", "redirect_uris":[""], "response_types":["code"], "grant_type":["authorization_code"], "acr_values":["basic"], "scope" : [ "openid", "profile","uma_protection","uma_authorization", "email" ], "ui_locales":["en"], "claims_locales":["en"], "client_jwks_uri":"", "contacts":[] }

By Yuriy Zabrovarnyy staff 29 Dec 2016 at 1:03 a.m. CST

Yuriy Zabrovarnyy gravatar
It looks as some regression on oxauth side, I opened git ticket for it and will investigate in detail https://github.com/GluuFederation/oxd/issues/63

By Inderpal Singh user 02 Jan 2017 at 12:19 a.m. CST

Inderpal Singh gravatar
Please let me know oxd-server version which are working properly in uma authentication.

By Yuriy Zabrovarnyy staff 02 Jan 2017 at 5:48 a.m. CST

Yuriy Zabrovarnyy gravatar
oxd 2.4.4 perfectly works with Gluu Server 2.4.4. It is confirmed by this jenkins build https://ox.gluu.org/jenkins/job/oxD/286/consoleFull Please validate and let me know whether it works for you. (Don't try it with Gluu Server 3.0.0 because it will not work with oxd 2.4.4)

By Inderpal Singh user 03 Jan 2017 at 1:09 a.m. CST

Inderpal Singh gravatar
Thanks Yuriy. Now its working fine.