By: Felipe Bahamonde user 02 Dec 2017 at 8:12 p.m. CST

4 Responses
Felipe Bahamonde gravatar
Hi, Im trying to deploy the python example with oxd, I already installed my gluu server (on Google cloud) and it's working, then with a VM I installed oxd with python example. I already setup client but when I click the buttom "login by openid provider" nothing happens, only this url: https://gluu.server.lab2/oxauth/restv1/authorize?response_type=code&client_id=@!A2AD.41F1.676B.73F3!0001!68E4.C022!0008!9FEA.8D6E.6052.B93A&redirect_uri=https://client.example.com/userinfo&scope=openid+profile&state=rrk22bklnobrnljhaun2inn42d&nonce=ncv9sb2qhocf2u7geo62en5iup&acr_values=basic+duo&custom_response_headers=%5B%7B%22param2%22%3A%22value2%22%7D%2C%7B%22param1%22%3A%22value1%22%7D%5D Im using exactly the same demosite.cfg file except for OP URL: ``` [oxd] connection_type = local connection_type_value = 8099 id = 7915cf9b-a4a4-4af0-9390-b750e5681a92 [client] authorization_redirect_uri = https://client.example.com/userinfo op_host = https://gluu.server.lab2 post_logout_redirect_uri = https://client.example.com client_frontchannel_logout_uris = https://client.example.com/logout,https://client.example.com/user/logout acr_values = basic,duo scope = openid,profile contacts = admin@example.com,admin2@example.com grant_types = authorization_code,client_credentials client_name = Sample Client client_id = @!A2AD.41F1.676B.73F3!0001!68E4.C022!0008!9D75.65F4.CF7F.7936 client_secret = a4efd03d-0c3b-41ad-abdc-4774b6ca0b37 client_secret_expires_at = 1483228800000 client_jwks_uri = client_token_endpoint_auth_method = application_type = web dynamic_registration = true op_discovery_path = client_request_uris = client_sector_identifier_uri = response_types = code ui_locales = claims_locales = ``` I guess Im missing some configuration in the gluu server or in oxd but I dont know.

By Jajati Badu Account Admin 04 Dec 2017 at 10:56 a.m. CST

Jajati Badu gravatar
Hi Felipe, Could you please share the oxd-server log file ? If you are using any Ubuntu or any other linux OS , default log file location is /var/log/oxd-server.log Kind Regards, Jajati

By Felipe Bahamonde user 04 Dec 2017 at 2:33 p.m. CST

Felipe Bahamonde gravatar
Hi Jajati, Yesterday, changing the configuration in demosite.cfg (deleting basic and duo due Im not using in gluu server) i could make it work: Now, the server asks for my user and password and then some authorization to use my information in this app but now I get this error when Im redirected to mypage/userinfo: https://imgur.com/a/6TfRR the oxd-server log is this: ``` 2017-12-04 15:18:03,888 INFO [org.xdi.oxd.server.ServerLauncher] Starting... 2017-12-04 15:18:03,900 INFO [org.xdi.oxd.server.ServerLauncher] commit: 0c1db1f0113f7c81617ad1a27e7b9e78e5426941, branch: version_3.1.1, build time:07.11.2017 @ 16:19:50 EST 2017-12-04 15:18:04,364 TRACE [org.xdi.oxd.server.service.ConfigurationService] Try to load configuration from system property: oxd.server.config, value: /opt/oxd-server/conf/oxd-conf.json 2017-12-04 15:18:04,595 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration loaded successfully from system property: oxd.server.config. 2017-12-04 15:18:04,595 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration: Configuration{port=8099, timeOutInSeconds=0, registerClientAppType='web', registerClientResponesType='code', serverName='localserver', localhostOnly=true, useClientAuthenticationForPat=true, trustAllCerts=true, keyStorePath='', keyStorePassword='', licenseId='4bb53f89-52bc-44e0-8ab3-722e773c494d', publicKey='Ggph+gzcBBbiyYT0b97VbBqYpUYM2BdJ3LTEIY15lEBUDLsC8O3w7CeHNXh10munBr2a+wPSrdBxwJ/9LXBwOXA0qTsv+MirjPBlJ9ufouMDf3sG65ftILdRiyYr4++xoH2ChqNvt6kZ567QWuHVSU2OTq3IELA1aS2gboKANmuQdTCmmMbOYuKOODl4yBjKCZHIetgLqEJzabB3XBt42EEgx2RVglmKIoyHbCvYEzlapyVn9HYgGi44cCAfH1zWlc4WLSIzlhZFd/vq9DYfGeoDA/Xy6kSu2kRLVLqy8ysIrGDLx0IVW4sqjw2zghZP4DRqf6U+o41ueLY0bfw7Gppk3S/ieQZPHcEE4jX13qB8kTKvkdWi3tpVsE0aDMRnlIhk773BatvBJsXn10o6gQ==', publicPassword='hwN9PtgoXABb1vsfhbfq', licensePassword='ID4M3vD7AT70oiQy4CAf', supportGoogleLogout=false, stateExpirationInMinutes=5, nonceExpirationInMinutes=5, publicOpKeyCacheExpirationInMinutes=60, protectCommandsWithAccessToken=false, uma2AuthRegisterClaimsGatheringEndpointAsRedirectUriOfClient=true, migrationSourceFolderPath='', storage='h2', storageConfiguration='{"dbFileLocation":"/opt/oxd-server/bin/oxd_db"}'} 2017-12-04 15:18:04,595 TRACE [org.xdi.oxd.server.service.ConfigurationService] Trying to read oxd-default-site-config.json, path: /opt/oxd-server/conf/oxd-default-site-config.json 2017-12-04 15:18:04,723 INFO [org.xdi.oxd.server.service.ConfigurationService] Default RP configuration loaded successfully: Rp{oxdId='null', opHost='https://gluu.server.lab2', opDiscoveryPath='', idToken='null', accessToken='null', authorizationRedirectUri='', postLogoutRedirectUri='null', applicationType='null', redirectUris=[], claimsRedirectUri=null, responseTypes=[code], clientId='null', clientSecret='null', clientRegistrationAccessToken='null', clientRegistrationClientUri='null', clientIdIssuedAt=null, clientSecretExpiresAt=null, clientName='null', sectorIdentifierUri='null', clientJwksUri='', setupOxdId='null', setupClientId='null', scope=[openid, profile, email], uiLocales=[en], claimsLocales=[en], acrValues=[], grantType=null, contacts=[], userId='null', userSecret='null', pat='null', patExpiresIn=0, patCreatedAt=null, patRefreshToken='null', umaProtectedResources=[], rpt='null', rptTokenType='null', rptPct='null', rptExpiresAt=null, rptCreatedAt=null, rptUpgraded=null, oxdRpProgrammingLanguage=null} 2017-12-04 15:18:04,988 DEBUG [org.xdi.oxd.server.persistence.SqlPersistenceServiceImpl] Schema created successfully. 2017-12-04 15:18:05,114 INFO [org.xdi.oxd.server.persistence.SqlPersistenceServiceImpl] Loaded 24 RPs. 2017-12-04 15:18:05,115 DEBUG [org.xdi.oxd.server.service.MigrationService] Migration source folder is not specified. 2017-12-04 15:18:05,116 DEBUG [org.xdi.oxd.server.service.MigrationService] Skip migration because migration source folder is not specified or otherwise invalid. 2017-12-04 15:18:05,145 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: /home/osboxes/.oxd-license 2017-12-04 15:18:05,154 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 08-00-27-A6-BD-58 2017-12-04 15:18:05,155 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2017-12-04 15:18:05,155 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: /home/osboxes/.oxd-license 2017-12-04 15:18:05,155 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 08-00-27-A6-BD-58 2017-12-04 15:18:05,178 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2017-12-04 15:18:07,761 TRACE [org.xdi.oxd.server.license.LicenseService] License is validated successfully. 2017-12-04 15:18:07,776 TRACE [org.xdi.oxd.server.license.LicenseService] License data: LicenseMetadata{creationDate=Mon Nov 20 09:50:00 EST 2017, licenseId=null, autoupdate=true, active=true, product=oxd, licenseName='Felipe Bahamonde', expirationDate=Tue Nov 20 09:50:00 EST 2018, licenseCountLimit=9999, customerName=Felipe Bahamonde, emails=[]} 2017-12-04 15:18:07,793 TRACE [org.xdi.oxd.server.license.LicenseService] Validating license ... 2017-12-04 15:18:07,793 DEBUG [org.xdi.oxd.server.license.LicenseFile] License file location: /home/osboxes/.oxd-license 2017-12-04 15:18:07,793 TRACE [org.xdi.oxd.server.license.LicenseFile] MAC ADDRESS set to : 08-00-27-A6-BD-58 2017-12-04 15:18:07,793 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2017-12-04 15:18:08,963 TRACE [org.xdi.oxd.server.license.LicenseService] License is validated successfully. 2017-12-04 15:18:08,966 TRACE [org.xdi.oxd.server.license.LicenseService] License data: LicenseMetadata{creationDate=Mon Nov 20 09:50:00 EST 2017, licenseId=null, autoupdate=true, active=true, product=oxd, licenseName='Felipe Bahamonde', expirationDate=Tue Nov 20 09:50:00 EST 2018, licenseCountLimit=9999, customerName=Felipe Bahamonde, emails=[]} 2017-12-04 15:18:08,975 INFO [org.xdi.oxd.server.service.SocketService] Server socket is bound to port: 8099, with timeout: 0 seconds. Start listening for notifications. 2017-12-04 15:20:01,450 DEBUG [org.xdi.oxd.server.service.SocketService] Start new SocketProcessor... 2017-12-04 15:20:01,468 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2017-12-04 15:20:01,468 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2017-12-04 15:20:01,473 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0161, commandSize: 161 2017-12-04 15:20:01,473 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"params": {"custom_parameters": {"param2": "value2", "param1": "value1"}, "oxd_id": "a2df4128-d2b9-4b8c-991d-d511b25e0b5a"}, "command": "get_authorization_url"}', m_leftString=''} 2017-12-04 15:20:01,473 TRACE [org.xdi.oxd.server.Processor] Command: {"params": {"custom_parameters": {"param2": "value2", "param1": "value1"}, "oxd_id": "a2df4128-d2b9-4b8c-991d-d511b25e0b5a"}, "command": "get_authorization_url"} 2017-12-04 15:20:01,527 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2017-12-04 15:20:01,529 TRACE [org.xdi.oxd.server.license.MacAddressProvider] Mac address fetched from file: 08-00-27-A6-BD-58 2017-12-04 15:20:01,530 TRACE [org.xdi.oxd.server.license.LicenseService] Updating statistic ... , request: StatisticUpdateRequest{type=CLIENT, licenseId='null', properties={license_id=4bb53f89-52bc-44e0-8ab3-722e773c494d, mac_address=08-00-27-A6-BD-58, oxd_id=a2df4128-d2b9-4b8c-991d-d511b25e0b5a, client_name=null, client_id=@!E324.A723.9300.B8F0!0001!8792.E504!0008!320E.6788.6A8B.A7FD, is_client_local=true}, appMetadata=AppMetadata{appName='oxd', appVersiom='3.1.1', programmingLanguage='python', data={server_name=localserver, git.tags=, git.commit.user.name=Ganesh, git.commit.id.abbrev=0c1db1f, git.branch=version_3.1.1, git.commit.id.describe-short=0c1db1f, git.commit.id.describe=0c1db1f, git.commit.id=0c1db1f0113f7c81617ad1a27e7b9e78e5426941, git.commit.message.short=oxd service detection bug, git.build.user.email=aalves@gmail.com, git.commit.user.email=ganesh.sharma@worldiswelcome.com, git.commit.time=07.11.2017 @ 14:49:38 EST, git.build.time=07.11.2017 @ 16:19:50 EST, git.build.user.name=Adrian Alves, git.dirty=true, git.commit.message.full=oxd service detection bug oxd service detection bug, git.remote.origin.url=https://github.com/GluuFederation/oxd.git}}} 2017-12-04 15:20:01,531 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2017-12-04 15:20:02,496 TRACE [org.xdi.oxd.server.service.DiscoveryService] Discovery response: { "issuer": "https://gluu.server.lab3", "authorization_endpoint": "https://gluu.server.lab3/oxauth/restv1/authorize", "token_endpoint": "https://gluu.server.lab3/oxauth/restv1/token", "userinfo_endpoint": "https://gluu.server.lab3/oxauth/restv1/userinfo", "clientinfo_endpoint": "https://gluu.server.lab3/oxauth/restv1/clientinfo", "check_session_iframe": "https://gluu.server.lab3/oxauth/opiframe", "end_session_endpoint": "https://gluu.server.lab3/oxauth/restv1/end_session", "jwks_uri": "https://gluu.server.lab3/oxauth/restv1/jwks", "registration_endpoint": "https://gluu.server.lab3/oxauth/restv1/register", "id_generation_endpoint": "https://gluu.server.lab3/oxauth/restv1/id", "introspection_endpoint": "https://gluu.server.lab3/oxauth/restv1/introspection", "scopes_supported": [ "clientinfo", "user_name", "permission", "profile", "mobile_phone", "address", "phone", "email", "openid" ], "response_types_supported": [ "code", "id_token token", "code token", "id_token", "code id_token", "token", "code id_token token" ], "grant_types_supported": [ "authorization_code", "password", "client_credentials", "implicit", "urn:ietf:params:oauth:grant-type:uma-ticket", "refresh_token" ], "acr_values_supported": ["auth_ldap_server"], "auth_level_mapping": {"-1": ["auth_ldap_server"]}, "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": [ "none", "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", "inum", "family_name", "updated_at", "locale", "middle_name", "nickname", "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": [ {"clientinfo": [ "name", "inum" ]}, {"user_name": ["user_name"]}, {"permission": []}, {"profile": [ "name", "family_name", "given_name", "middle_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "updated_at" ]}, {"mobile_phone": ["phone_mobile_number"]}, {"address": [ "formatted", "postal_code", "street_address", "locality", "country", "region" ]}, {"phone": [ "phone_number_verified", "phone_number" ]}, {"email": [ "email_verified", "email" ]}, {"openid": []}, {"uma_protection": []} ], "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", "frontchannel_logout_supported": "true", "frontchannel_logout_session_supported": true } 2017-12-04 15:20:02,533 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"authorization_url":"https://gluu.server.lab3/oxauth/restv1/authorize?response_type=code&client_id=@!E324.A723.9300.B8F0!0001!8792.E504!0008!320E.6788.6A8B.A7FD&redirect_uri=https://client.example.com:8080/userinfo&scope=openid+profile&state=atft771kruisiu474920o28i11&nonce=hb2mdkphhsbc6b3566t0leap61&custom_response_headers=%5B%7B%22param2%22%3A%22value2%22%7D%2C%7B%22param1%22%3A%22value1%22%7D%5D"}} 2017-12-04 15:20:02,536 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2017-12-04 15:20:02,536 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2017-12-04 15:20:02,536 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit. 2017-12-04 15:20:02,537 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank. 2017-12-04 15:20:02,548 TRACE [org.xdi.oxd.server.license.LicenseService] Updated statistic. oxdId: a2df4128-d2b9-4b8c-991d-d511b25e0b5a 2017-12-04 15:20:07,091 DEBUG [org.xdi.oxd.server.service.SocketService] Start new SocketProcessor... 2017-12-04 15:20:07,092 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2017-12-04 15:20:07,092 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2017-12-04 15:20:07,093 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0182, commandSize: 182 2017-12-04 15:20:07,093 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"params": {"code": "a8ee7402-6203-4ee6-9578-8c5e55f1f248", "state": "atft771kruisiu474920o28i11", "oxd_id": "a2df4128-d2b9-4b8c-991d-d511b25e0b5a"}, "command": "get_tokens_by_code"}', m_leftString=''} 2017-12-04 15:20:07,093 TRACE [org.xdi.oxd.server.Processor] Command: {"params": {"code": "a8ee7402-6203-4ee6-9578-8c5e55f1f248", "state": "atft771kruisiu474920o28i11", "oxd_id": "a2df4128-d2b9-4b8c-991d-d511b25e0b5a"}, "command": "get_tokens_by_code"} 2017-12-04 15:20:07,155 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2017-12-04 15:20:09,630 DEBUG [org.xdi.oxd.server.persistence.SqlPersistenceServiceImpl] RP updated successfully. RP : Rp{oxdId='a2df4128-d2b9-4b8c-991d-d511b25e0b5a', opHost='https://gluu.server.lab3', opDiscoveryPath='null', idToken='eyJraWQiOiI0NGU2YTMzOS1lMjljLTQ0MDctYmQxYi00ZmE2MzAzZTc4YmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2dsdXUuc2VydmVyLmxhYjMiLCJhdWQiOiJAIUUzMjQuQTcyMy45MzAwLkI4RjAhMDAwMSE4NzkyLkU1MDQhMDAwOCEzMjBFLjY3ODguNkE4Qi5BN0ZEIiwiZXhwIjoxNTEyNDIyNDA3LCJpYXQiOjE1MTI0MTg4MDcsIm5vbmNlIjoiaGIybWRrcGhoc2JjNmIzNTY2dDBsZWFwNjEiLCJhdXRoX3RpbWUiOjE1MTI0MTg4MDYsImF0X2hhc2giOiIweGFIWEs3allUTGZvbHZvSTViOUNBIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwic3ViIjoiUGx0OEFDc3gtSGdkRGt6eUxZNDVHb0VQVm5uNzBtYVg5M3IxbzQzVGdnZyJ9.KXvxroituM3-gYZQKhKBea92lK_GsSvTH92zs2vcxF_md3D_8q9oo6GsSheJP5ksjlJtJOmPMWC8xDXNrcnmxi7gt74YgTI_aRt2lIzbWDHJlrgjuxkxvDNLLC23GffBfM73aJUixez4TMCyebwDfnW5n86mBZ4NZBgWiSyUuy7ov6jp05NdIMlJ8BpLYZWEYNzXAgjlf3dM4XDv7pjPK9CC8YOI8Vw003BPWAaiIlnal37lc4WwI7lKJsSh1RrAkake1U9xeBYebUQue43ubZRTwyJK_AcVZ3Iwwqg522Bxpom4aebL7XMlE71LBr0PooTjmR3_0euOuQ1FdC1fNg', accessToken='ef9c592b-77ea-4866-89eb-bfce2dbbd35b', authorizationRedirectUri='https://client.example.com:8080/userinfo', postLogoutRedirectUri='https://client.example.com:8080', applicationType='web', redirectUris=[https://client.example.com:8080, https://client.example.com:8080/userinfo], claimsRedirectUri=[], responseTypes=[code], clientId='@!E324.A723.9300.B8F0!0001!8792.E504!0008!320E.6788.6A8B.A7FD', clientSecret='a8b72e47-cade-4e8c-9e2e-9d12467cf46a', clientRegistrationAccessToken='2ecaa113-44b7-422a-822b-4a00cb78d168', clientRegistrationClientUri='https://gluu.server.lab3/oxauth/restv1/register?client_id=@!E324.A723.9300.B8F0!0001!8792.E504!0008!320E.6788.6A8B.A7FD', clientIdIssuedAt=Mon Dec 04 10:10:54 EST 2017, clientSecretExpiresAt=Tue Dec 05 10:10:54 EST 2017, clientName='null', sectorIdentifierUri='null', clientJwksUri='', setupOxdId='0611dba3-0a7d-49e8-bdd4-5fe92f5858ad', setupClientId='@!E324.A723.9300.B8F0!0001!8792.E504!0008!7F7F.5152.7F52.2284', scope=[openid, profile], uiLocales=[en], claimsLocales=[en], acrValues=[], grantType=[authorization_code, client_credentials], contacts=[admin@example.com, admin2@example.com], userId='null', userSecret='null', pat='0100e2c2-286b-4851-87ac-61431728cef1', patExpiresIn=299, patCreatedAt=Mon Dec 04 12:11:41 EST 2017, patRefreshToken='null', umaProtectedResources=[UmaResource{id='6e27ed79-f1c6-430d-adbe-1aff7fe52f0f', path='/photo', httpMethods=[GET], scopes=[sobhan_uma_scope], ticketScopes=[sobhan_uma_scope]}], rpt='null', rptTokenType='null', rptPct='null', rptExpiresAt=null, rptCreatedAt=null, rptUpgraded=null, oxdRpProgrammingLanguage=python} 2017-12-04 15:20:09,650 TRACE [org.xdi.oxd.server.op.GetTokensByCodeOperation] Scope: null 2017-12-04 15:20:09,669 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"access_token":"ef9c592b-77ea-4866-89eb-bfce2dbbd35b","expires_in":299,"id_token":"eyJraWQiOiI0NGU2YTMzOS1lMjljLTQ0MDctYmQxYi00ZmE2MzAzZTc4YmIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2dsdXUuc2VydmVyLmxhYjMiLCJhdWQiOiJAIUUzMjQuQTcyMy45MzAwLkI4RjAhMDAwMSE4NzkyLkU1MDQhMDAwOCEzMjBFLjY3ODguNkE4Qi5BN0ZEIiwiZXhwIjoxNTEyNDIyNDA3LCJpYXQiOjE1MTI0MTg4MDcsIm5vbmNlIjoiaGIybWRrcGhoc2JjNmIzNTY2dDBsZWFwNjEiLCJhdXRoX3RpbWUiOjE1MTI0MTg4MDYsImF0X2hhc2giOiIweGFIWEs3allUTGZvbHZvSTViOUNBIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwic3ViIjoiUGx0OEFDc3gtSGdkRGt6eUxZNDVHb0VQVm5uNzBtYVg5M3IxbzQzVGdnZyJ9.KXvxroituM3-gYZQKhKBea92lK_GsSvTH92zs2vcxF_md3D_8q9oo6GsSheJP5ksjlJtJOmPMWC8xDXNrcnmxi7gt74YgTI_aRt2lIzbWDHJlrgjuxkxvDNLLC23GffBfM73aJUixez4TMCyebwDfnW5n86mBZ4NZBgWiSyUuy7ov6jp05NdIMlJ8BpLYZWEYNzXAgjlf3dM4XDv7pjPK9CC8YOI8Vw003BPWAaiIlnal37lc4WwI7lKJsSh1RrAkake1U9xeBYebUQue43ubZRTwyJK_AcVZ3Iwwqg522Bxpom4aebL7XMlE71LBr0PooTjmR3_0euOuQ1FdC1fNg","refresh_token":"72a1e2ba-a57b-4b6e-b7a0-089290e8442d","id_token_claims":{"at_hash":["0xaHXK7jYTLfolvoI5b9CA"],"aud":["@!E324.A723.9300.B8F0!0001!8792.E504!0008!320E.6788.6A8B.A7FD"],"sub":["Plt8ACsx-HgdDkzyLY45GoEPVnn70maX93r1o43Tggg"],"auth_time":["1512418806"],"iss":["https://gluu.server.lab3"],"exp":["1512422407"],"iat":["1512418807"],"nonce":["hb2mdkphhsbc6b3566t0leap61"],"oxOpenIDConnectVersion":["openidconnect-1.0"]}}} 2017-12-04 15:20:09,671 DEBUG [org.xdi.oxd.server.service.SocketService] Start new SocketProcessor... 2017-12-04 15:20:09,672 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2017-12-04 15:20:09,674 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2017-12-04 15:20:09,674 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit. 2017-12-04 15:20:09,674 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank. 2017-12-04 15:20:09,674 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2017-12-04 15:20:09,675 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2017-12-04 15:20:09,675 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0167, commandSize: 167 2017-12-04 15:20:09,675 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"params": {"oxd_id": "a2df4128-d2b9-4b8c-991d-d511b25e0b5a", "refresh_token": "72a1e2ba-a57b-4b6e-b7a0-089290e8442d"}, "command": "get_access_token_by_refresh_token"}', m_leftString=''} 2017-12-04 15:20:09,675 TRACE [org.xdi.oxd.server.Processor] Command: {"params": {"oxd_id": "a2df4128-d2b9-4b8c-991d-d511b25e0b5a", "refresh_token": "72a1e2ba-a57b-4b6e-b7a0-089290e8442d"}, "command": "get_access_token_by_refresh_token"} 2017-12-04 15:20:09,680 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2017-12-04 15:20:10,573 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"scope":"openid","access_token":"3969aafa-5cca-4086-b25d-0d65b23ad956","expires_in":299,"refresh_token":"335cbfa9-a581-4f47-85c8-203e4c6af417"}} 2017-12-04 15:20:10,577 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2017-12-04 15:20:10,578 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2017-12-04 15:20:10,580 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit. 2017-12-04 15:20:10,580 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank. 2017-12-04 15:20:10,581 DEBUG [org.xdi.oxd.server.service.SocketService] Start new SocketProcessor... 2017-12-04 15:20:10,587 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2017-12-04 15:20:10,587 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2017-12-04 15:20:10,588 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0146, commandSize: 146 2017-12-04 15:20:10,588 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"params": {"access_token": "3969aafa-5cca-4086-b25d-0d65b23ad956", "oxd_id": "a2df4128-d2b9-4b8c-991d-d511b25e0b5a"}, "command": "get_user_info"}', m_leftString=''} 2017-12-04 15:20:10,588 TRACE [org.xdi.oxd.server.Processor] Command: {"params": {"access_token": "3969aafa-5cca-4086-b25d-0d65b23ad956", "oxd_id": "a2df4128-d2b9-4b8c-991d-d511b25e0b5a"}, "command": "get_user_info"} 2017-12-04 15:20:10,612 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2017-12-04 15:20:11,575 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"ok","data":{"claims":{"sub":["Plt8ACsx-HgdDkzyLY45GoEPVnn70maX93r1o43Tggg"]},"refresh_token":null,"access_token":null}} 2017-12-04 15:20:11,580 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2017-12-04 15:20:11,580 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2017-12-04 15:20:11,585 TRACE [org.xdi.oxd.common.CoreUtils] End of stream. Quit. 2017-12-04 15:20:11,586 TRACE [org.xdi.oxd.server.SocketProcessor] Quit. Read result is null or command string is blank. ``` What could be the problem?

By Jajati Badu Account Admin 05 Dec 2017 at 4:10 a.m. CST

Jajati Badu gravatar
Hi Felipe , Looks like you are not geting User details in "Get User Info" response > Send back response: {"status":"ok","data":{"claims":{"sub":["Plt8ACsx-HgdDkzyLY45GoEPVnn70maX93r1o43Tggg"]},"refresh_token":null,"access_token":null}} I can see two scopes are there - scope = openid,profile you need to enable profile scope inside Gluu server. You can do this by navigating to Gluu Server (Admin) >OpenId Connect > Scopes > Select Profile scope and set "Allow for dynamic registration" as True If you are still having issue please let me know. Thanks, Jajati

By Felipe Bahamonde user 05 Dec 2017 at 4:59 a.m. CST

Felipe Bahamonde gravatar
Thank you! enabling email and profile the problem was fixed.