Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =============================== WIHTOUT SETUP CLIENT ===============================
- INFO:oxdpython.configurer:Loading config at: /Users/tecoholic/work/oxd-python/examples/e2e_tests/test.cfg
- WARNING:oxdpython.configurer:No option 'https_extension' in section: 'oxd'
- DEBUG:oxdpython.messenger:Creating a AF_INET, SOCK_STREAM socket.
- WARNING:oxdpython.configurer:No option 'protection_access_token' in section: 'client'
- WARNING:oxdpython.configurer:No option 'id' in section: 'oxd'
- => Registering client using register_site()
- WARNING:oxdpython.configurer:No option 'client_jwks_uri' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_token_endpoint_auth_method' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_id' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_secret' in section: 'client'
- WARNING:oxdpython.configurer:No option 'application_type' in section: 'client'
- WARNING:oxdpython.configurer:No option 'acr_values' in section: 'client'
- WARNING:oxdpython.configurer:No option 'contacts' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_request_uris' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_sector_identifier_uri' in section: 'client'
- WARNING:oxdpython.configurer:No option 'response_types' in section: 'client'
- WARNING:oxdpython.configurer:No option 'ui_locales' in section: 'client'
- WARNING:oxdpython.configurer:No option 'claims_locales' in section: 'client'
- WARNING:oxdpython.configurer:No option 'claims_redirect_uri' in section: 'client'
- DEBUG:oxdpython.client:Sending command `register_site` with params {'authorization_redirect_uri': 'https://client.example.com/callback', 'client_name': 'oxdpython openid socket test script', 'grant_types': ['authorization_code'], 'post_logout_redirect_uri': 'https://client.example.com/post_logout/', 'client_frontchannel_logout_uris': ['https://client.example.com/logout_callback/'], 'scope': ['openid', 'profile'], 'op_host': 'https://ce-dev4.gluu.org'}
- INFO:oxdpython.messenger:Initiating first time socket connection.
- DEBUG:oxdpython.messenger:Socket connecting to localhost:8099
- DEBUG:oxdpython.messenger:Sending: 0428{"params": {"authorization_redirect_uri": "https://client.example.com/callback", "client_name": "oxdpython openid socket test script", "grant_types": ["authorization_code"], "post_logout_redirect_uri": "https://client.example.com/post_logout/", "client_frontchannel_logout_uris": ["https://client.example.com/logout_callback/"], "scope": ["openid", "profile"], "op_host": "https://ce-dev4.gluu.org"}, "command": "register_site"}
- DEBUG:oxdpython.client:Received response: {u'status': u'ok', u'data': {u'op_host': u'https://ce-dev4.gluu.org', u'oxd_id': u'85a416bb-6779-4629-9c15-9972cae718e0'}}
- INFO:oxdpython.client:Site registration successful. Oxd ID: 85a416bb-6779-4629-9c15-9972cae718e0
- INFO:root:Received: 85a416bb-6779-4629-9c15-9972cae718e0
- => Update site registration
- WARNING:oxdpython.configurer:No option 'client_jwks_uri' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_token_endpoint_auth_method' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_id' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_secret' in section: 'client'
- WARNING:oxdpython.configurer:No option 'application_type' in section: 'client'
- WARNING:oxdpython.configurer:No option 'acr_values' in section: 'client'
- WARNING:oxdpython.configurer:No option 'contacts' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_request_uris' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_sector_identifier_uri' in section: 'client'
- WARNING:oxdpython.configurer:No option 'response_types' in section: 'client'
- WARNING:oxdpython.configurer:No option 'ui_locales' in section: 'client'
- WARNING:oxdpython.configurer:No option 'claims_locales' in section: 'client'
- WARNING:oxdpython.configurer:No option 'claims_redirect_uri' in section: 'client'
- DEBUG:oxdpython.client:Sending `update_site_registration` with params {'oxd_id': u'85a416bb-6779-4629-9c15-9972cae718e0', 'client_name': 'oxdpython openid socket test script', 'grant_types': ['authorization_code'], 'post_logout_redirect_uri': 'https://client.example.com/post_logout/', 'authorization_redirect_uri': 'https://client.example.com/callback', 'client_frontchannel_logout_uris': ['https://client.example.com/logout_callback/'], 'scope': ['openid', 'profile'], 'op_host': 'https://ce-dev4.gluu.org'}
- DEBUG:oxdpython.messenger:Sending: 0489{"params": {"oxd_id": "85a416bb-6779-4629-9c15-9972cae718e0", "client_name": "oxdpython openid socket test script", "grant_types": ["authorization_code"], "post_logout_redirect_uri": "https://client.example.com/post_logout/", "authorization_redirect_uri": "https://client.example.com/callback", "client_frontchannel_logout_uris": ["https://client.example.com/logout_callback/"], "scope": ["openid", "profile"], "op_host": "https://ce-dev4.gluu.org"}, "command": "update_site_registration"}
- DEBUG:oxdpython.client:Received response: {u'status': u'ok', u'data': {u'oxd_id': u'85a416bb-6779-4629-9c15-9972cae718e0'}}
- INFO:root:Received: True
- => Getting auth URL
- DEBUG:oxdpython.client:Sending command `get_authorization_url` with params {'oxd_id': u'85a416bb-6779-4629-9c15-9972cae718e0'}
- DEBUG:oxdpython.messenger:Sending: 0098{"params": {"oxd_id": "85a416bb-6779-4629-9c15-9972cae718e0"}, "command": "get_authorization_url"}
- DEBUG:oxdpython.client:Received response: {u'status': u'ok', u'data': {u'authorization_url': u'https://ce-dev4.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=@!38D4.410C.1D43.8932!0001!37F2.B744!0008!6AAD.1C8F.CA96.F6EF&redirect_uri=https://client.example.com/callback&scope=openid+profile&state=qrkvvbmjecf50m4lq72lqji7v9&nonce=qmk3mdj0bl6msl0j8e22haaqm0'}}
- Visit this URL in your browser: https://ce-dev4.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=@!38D4.410C.1D43.8932!0001!37F2.B744!0008!6AAD.1C8F.CA96.F6EF&redirect_uri=https://client.example.com/callback&scope=openid+profile&state=qrkvvbmjecf50m4lq72lqji7v9&nonce=qmk3mdj0bl6msl0j8e22haaqm0
- INFO:root:Received: https://ce-dev4.gluu.org/oxauth/restv1/authorize?response_type=code&client_id=@!38D4.410C.1D43.8932!0001!37F2.B744!0008!6AAD.1C8F.CA96.F6EF&redirect_uri=https://client.example.com/callback&scope=openid+profile&state=qrkvvbmjecf50m4lq72lqji7v9&nonce=qmk3mdj0bl6msl0j8e22haaqm0
- => Getting tokens by code
- Enter redirected URL to parse tokens: https://client.example.com/callback?code=4265a325-db9d-44ed-8153-5e5c3adb39e2&scope=openid+profile&session_id=37980c69-2e05-4f7d-a9cf-158712077b75&state=qrkvvbmjecf50m4lq72lqji7v9&session_state=ff40e4ea-4b06-4700-8d36-8923ab1461f7
- DEBUG:oxdpython.client:Sending command `get_tokens_by_code` with params {'state': 'qrkvvbmjecf50m4lq72lqji7v9', 'code': '4265a325-db9d-44ed-8153-5e5c3adb39e2', 'oxd_id': u'85a416bb-6779-4629-9c15-9972cae718e0'}
- DEBUG:oxdpython.messenger:Sending: 0182{"params": {"state": "qrkvvbmjecf50m4lq72lqji7v9", "code": "4265a325-db9d-44ed-8153-5e5c3adb39e2", "oxd_id": "85a416bb-6779-4629-9c15-9972cae718e0"}, "command": "get_tokens_by_code"}
- DEBUG:oxdpython.client:Received response: {u'status': u'ok', u'data': {u'access_token': u'8991d264-35b3-46f9-a107-0b5b18514d76', u'id_token': u'eyJraWQiOiI4NzE2OGJjMS1lNTU4LTQxNjktOGRkMS05ZmJkNDUxZGU1ZDciLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2NlLWRldjQuZ2x1dS5vcmciLCJhdWQiOiJAITM4RDQuNDEwQy4xRDQzLjg5MzIhMDAwMSEzN0YyLkI3NDQhMDAwOCE2QUFELjFDOEYuQ0E5Ni5GNkVGIiwiZXhwIjoxNTEyNjc0Mzg4LCJpYXQiOjE1MTI2NzA3ODgsIm5vbmNlIjoicW1rM21kajBibDZtc2wwajhlMjJoYWFxbTAiLCJhdXRoX3RpbWUiOjE1MTI2NzA3NzQsImF0X2hhc2giOiJvNnFuRTJydDZSWU5BZUtfVFJtY0FnIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwic3ViIjoicExoWVp1LU1Dc21XdEhOVm1oT21CLXY1U3ZNSFpRS3c4TUNxdkNUQ3JicyJ9.CBpYtc5YPmXWympbi6bQJweM203Zj9fSOKiYR6N-xfjgkt65iScS1ldWB_ajFPMpfywJTXPr7wsyhO2MqkcHh7B4FHlxfSouk6YD9podYZEIjKH3ubte_fbEcUSoAodvHjqJ-y-QvuwSsh-KEacZlUiJsFVKDgw8KjDA5v7RZsdERF6l9Ly8s5ihujE3W_glYw6uFDnvtrprOTu0SLFbAXPUR0ghXTwER2U4zX0317Ks8JcmGJKDQ_vRm5HX7qkQO0DLnRbdk8zsK83kiqn76Dpi_6u7rt9iCUvTKzjhqee8KmYU577eOSOmb2VEtHVU2orUO7Afs6PlyFvhE6BNIA', u'id_token_claims': {u'nonce': [u'qmk3mdj0bl6msl0j8e22haaqm0'], u'oxOpenIDConnectVersion': [u'openidconnect-1.0'], u'aud': [u'@!38D4.410C.1D43.8932!0001!37F2.B744!0008!6AAD.1C8F.CA96.F6EF'], u'iss': [u'https://ce-dev4.gluu.org'], u'at_hash': [u'o6qnE2rt6RYNAeK_TRmcAg'], u'exp': [u'1512674388'], u'auth_time': [u'1512670774'], u'iat': [u'1512670788'], u'sub': [u'pLhYZu-MCsmWtHNVmhOmB-v5SvMHZQKw8MCqvCTCrbs']}, u'expires_in': 299, u'refresh_token': u'f5c8395f-14e1-40bc-a3a7-18990e9d760a'}}
- INFO:root:Received: {u'access_token': u'8991d264-35b3-46f9-a107-0b5b18514d76', u'id_token': u'eyJraWQiOiI4NzE2OGJjMS1lNTU4LTQxNjktOGRkMS05ZmJkNDUxZGU1ZDciLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2NlLWRldjQuZ2x1dS5vcmciLCJhdWQiOiJAITM4RDQuNDEwQy4xRDQzLjg5MzIhMDAwMSEzN0YyLkI3NDQhMDAwOCE2QUFELjFDOEYuQ0E5Ni5GNkVGIiwiZXhwIjoxNTEyNjc0Mzg4LCJpYXQiOjE1MTI2NzA3ODgsIm5vbmNlIjoicW1rM21kajBibDZtc2wwajhlMjJoYWFxbTAiLCJhdXRoX3RpbWUiOjE1MTI2NzA3NzQsImF0X2hhc2giOiJvNnFuRTJydDZSWU5BZUtfVFJtY0FnIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwic3ViIjoicExoWVp1LU1Dc21XdEhOVm1oT21CLXY1U3ZNSFpRS3c4TUNxdkNUQ3JicyJ9.CBpYtc5YPmXWympbi6bQJweM203Zj9fSOKiYR6N-xfjgkt65iScS1ldWB_ajFPMpfywJTXPr7wsyhO2MqkcHh7B4FHlxfSouk6YD9podYZEIjKH3ubte_fbEcUSoAodvHjqJ-y-QvuwSsh-KEacZlUiJsFVKDgw8KjDA5v7RZsdERF6l9Ly8s5ihujE3W_glYw6uFDnvtrprOTu0SLFbAXPUR0ghXTwER2U4zX0317Ks8JcmGJKDQ_vRm5HX7qkQO0DLnRbdk8zsK83kiqn76Dpi_6u7rt9iCUvTKzjhqee8KmYU577eOSOmb2VEtHVU2orUO7Afs6PlyFvhE6BNIA', u'id_token_claims': {u'nonce': [u'qmk3mdj0bl6msl0j8e22haaqm0'], u'oxOpenIDConnectVersion': [u'openidconnect-1.0'], u'aud': [u'@!38D4.410C.1D43.8932!0001!37F2.B744!0008!6AAD.1C8F.CA96.F6EF'], u'iss': [u'https://ce-dev4.gluu.org'], u'at_hash': [u'o6qnE2rt6RYNAeK_TRmcAg'], u'exp': [u'1512674388'], u'auth_time': [u'1512670774'], u'iat': [u'1512670788'], u'sub': [u'pLhYZu-MCsmWtHNVmhOmB-v5SvMHZQKw8MCqvCTCrbs']}, u'expires_in': 299, u'refresh_token': u'f5c8395f-14e1-40bc-a3a7-18990e9d760a'}
- => Getting user info
- DEBUG:oxdpython.client:Sending command `get_user_info` with params {'access_token': u'8991d264-35b3-46f9-a107-0b5b18514d76', 'oxd_id': u'85a416bb-6779-4629-9c15-9972cae718e0'}
- DEBUG:oxdpython.messenger:Sending: 0146{"params": {"access_token": "8991d264-35b3-46f9-a107-0b5b18514d76", "oxd_id": "85a416bb-6779-4629-9c15-9972cae718e0"}, "command": "get_user_info"}
- DEBUG:oxdpython.client:Received response: {u'status': u'ok', u'data': {u'access_token': None, u'claims': {u'website': [u'http://www.gluu.org'], u'profile': [u'http://www.mywebsite.com/profile'], u'middle_name': [u'User'], u'sub': [u'pLhYZu-MCsmWtHNVmhOmB-v5SvMHZQKw8MCqvCTCrbs'], u'picture': [u'http://www.gluu.org/wp-content/uploads/2012/04/mike3.png'], u'locale': [u'en-US'], u'gender': [u'Male'], u'zoneinfo': [u'America/Chicago'], u'preferred_username': [u'user'], u'updated_at': [u'1512590117265'], u'birthdate': [u'19830106010101.253Z'], u'family_name': [u'User'], u'given_name': [u'Test'], u'nickname': [u'user'], u'name': [u'oxAuth Test User']}, u'refresh_token': None}}
- INFO:root:Received: {u'website': [u'http://www.gluu.org'], u'profile': [u'http://www.mywebsite.com/profile'], u'middle_name': [u'User'], u'sub': [u'pLhYZu-MCsmWtHNVmhOmB-v5SvMHZQKw8MCqvCTCrbs'], u'picture': [u'http://www.gluu.org/wp-content/uploads/2012/04/mike3.png'], u'locale': [u'en-US'], u'gender': [u'Male'], u'zoneinfo': [u'America/Chicago'], u'preferred_username': [u'user'], u'updated_at': [u'1512590117265'], u'birthdate': [u'19830106010101.253Z'], u'family_name': [u'User'], u'given_name': [u'Test'], u'nickname': [u'user'], u'name': [u'oxAuth Test User']}
- => Getting new access token using refresh token
- DEBUG:oxdpython.client:Sending command `get_access_token_by_refresh_token` with params {'oxd_id': u'85a416bb-6779-4629-9c15-9972cae718e0', 'refresh_token': u'f5c8395f-14e1-40bc-a3a7-18990e9d760a'}
- DEBUG:oxdpython.messenger:Sending: 0167{"params": {"oxd_id": "85a416bb-6779-4629-9c15-9972cae718e0", "refresh_token": "f5c8395f-14e1-40bc-a3a7-18990e9d760a"}, "command": "get_access_token_by_refresh_token"}
- DEBUG:oxdpython.client:Received response: {u'status': u'ok', u'data': {u'access_token': u'b7c9156c-daa9-48ca-a40a-0ca84b3e1355', u'scope': u'openid', u'expires_in': 299, u'refresh_token': u'81872847-65a0-4467-a269-cb0c2b9da117'}}
- INFO:root:Received: {u'access_token': u'b7c9156c-daa9-48ca-a40a-0ca84b3e1355', u'scope': u'openid', u'expires_in': 299, u'refresh_token': u'81872847-65a0-4467-a269-cb0c2b9da117'}
- => Getting Logout URI
- DEBUG:oxdpython.client:Sending command `get_logout_uri` with params {'oxd_id': u'85a416bb-6779-4629-9c15-9972cae718e0'}
- DEBUG:oxdpython.messenger:Sending: 0091{"params": {"oxd_id": "85a416bb-6779-4629-9c15-9972cae718e0"}, "command": "get_logout_uri"}
- DEBUG:oxdpython.client:Received response: {u'status': u'ok', u'data': {u'uri': u'https://ce-dev4.gluu.org/oxauth/restv1/end_session?id_token_hint=eyJraWQiOiI4NzE2OGJjMS1lNTU4LTQxNjktOGRkMS05ZmJkNDUxZGU1ZDciLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2NlLWRldjQuZ2x1dS5vcmciLCJhdWQiOiJAITM4RDQuNDEwQy4xRDQzLjg5MzIhMDAwMSEzN0YyLkI3NDQhMDAwOCE2QUFELjFDOEYuQ0E5Ni5GNkVGIiwiZXhwIjoxNTEyNjc0Mzg4LCJpYXQiOjE1MTI2NzA3ODgsIm5vbmNlIjoicW1rM21kajBibDZtc2wwajhlMjJoYWFxbTAiLCJhdXRoX3RpbWUiOjE1MTI2NzA3NzQsImF0X2hhc2giOiJvNnFuRTJydDZSWU5BZUtfVFJtY0FnIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwic3ViIjoicExoWVp1LU1Dc21XdEhOVm1oT21CLXY1U3ZNSFpRS3c4TUNxdkNUQ3JicyJ9.CBpYtc5YPmXWympbi6bQJweM203Zj9fSOKiYR6N-xfjgkt65iScS1ldWB_ajFPMpfywJTXPr7wsyhO2MqkcHh7B4FHlxfSouk6YD9podYZEIjKH3ubte_fbEcUSoAodvHjqJ-y-QvuwSsh-KEacZlUiJsFVKDgw8KjDA5v7RZsdERF6l9Ly8s5ihujE3W_glYw6uFDnvtrprOTu0SLFbAXPUR0ghXTwER2U4zX0317Ks8JcmGJKDQ_vRm5HX7qkQO0DLnRbdk8zsK83kiqn76Dpi_6u7rt9iCUvTKzjhqee8KmYU577eOSOmb2VEtHVU2orUO7Afs6PlyFvhE6BNIA'}}
- INFO:root:Received: https://ce-dev4.gluu.org/oxauth/restv1/end_session?id_token_hint=eyJraWQiOiI4NzE2OGJjMS1lNTU4LTQxNjktOGRkMS05ZmJkNDUxZGU1ZDciLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2NlLWRldjQuZ2x1dS5vcmciLCJhdWQiOiJAITM4RDQuNDEwQy4xRDQzLjg5MzIhMDAwMSEzN0YyLkI3NDQhMDAwOCE2QUFELjFDOEYuQ0E5Ni5GNkVGIiwiZXhwIjoxNTEyNjc0Mzg4LCJpYXQiOjE1MTI2NzA3ODgsIm5vbmNlIjoicW1rM21kajBibDZtc2wwajhlMjJoYWFxbTAiLCJhdXRoX3RpbWUiOjE1MTI2NzA3NzQsImF0X2hhc2giOiJvNnFuRTJydDZSWU5BZUtfVFJtY0FnIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwic3ViIjoicExoWVp1LU1Dc21XdEhOVm1oT21CLXY1U3ZNSFpRS3c4TUNxdkNUQ3JicyJ9.CBpYtc5YPmXWympbi6bQJweM203Zj9fSOKiYR6N-xfjgkt65iScS1ldWB_ajFPMpfywJTXPr7wsyhO2MqkcHh7B4FHlxfSouk6YD9podYZEIjKH3ubte_fbEcUSoAodvHjqJ-y-QvuwSsh-KEacZlUiJsFVKDgw8KjDA5v7RZsdERF6l9Ly8s5ihujE3W_glYw6uFDnvtrprOTu0SLFbAXPUR0ghXTwER2U4zX0317Ks8JcmGJKDQ_vRm5HX7qkQO0DLnRbdk8zsK83kiqn76Dpi_6u7rt9iCUvTKzjhqee8KmYU577eOSOmb2VEtHVU2orUO7Afs6PlyFvhE6BNIA
- Visit this URL to logout: https://ce-dev4.gluu.org/oxauth/restv1/end_session?id_token_hint=eyJraWQiOiI4NzE2OGJjMS1lNTU4LTQxNjktOGRkMS05ZmJkNDUxZGU1ZDciLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL2NlLWRldjQuZ2x1dS5vcmciLCJhdWQiOiJAITM4RDQuNDEwQy4xRDQzLjg5MzIhMDAwMSEzN0YyLkI3NDQhMDAwOCE2QUFELjFDOEYuQ0E5Ni5GNkVGIiwiZXhwIjoxNTEyNjc0Mzg4LCJpYXQiOjE1MTI2NzA3ODgsIm5vbmNlIjoicW1rM21kajBibDZtc2wwajhlMjJoYWFxbTAiLCJhdXRoX3RpbWUiOjE1MTI2NzA3NzQsImF0X2hhc2giOiJvNnFuRTJydDZSWU5BZUtfVFJtY0FnIiwib3hPcGVuSURDb25uZWN0VmVyc2lvbiI6Im9wZW5pZGNvbm5lY3QtMS4wIiwic3ViIjoicExoWVp1LU1Dc21XdEhOVm1oT21CLXY1U3ZNSFpRS3c4TUNxdkNUQ3JicyJ9.CBpYtc5YPmXWympbi6bQJweM203Zj9fSOKiYR6N-xfjgkt65iScS1ldWB_ajFPMpfywJTXPr7wsyhO2MqkcHh7B4FHlxfSouk6YD9podYZEIjKH3ubte_fbEcUSoAodvHjqJ-y-QvuwSsh-KEacZlUiJsFVKDgw8KjDA5v7RZsdERF6l9Ly8s5ihujE3W_glYw6uFDnvtrprOTu0SLFbAXPUR0ghXTwER2U4zX0317Ks8JcmGJKDQ_vRm5HX7qkQO0DLnRbdk8zsK83kiqn76Dpi_6u7rt9iCUvTKzjhqee8KmYU577eOSOmb2VEtHVU2orUO7Afs6PlyFvhE6BNIA
- ======================= WITH SEUTP CLIENT ==========================
- INFO:oxdpython.configurer:Loading config at: /Users/tecoholic/work/oxd-python/examples/e2e_tests/test.cfg
- WARNING:oxdpython.configurer:No option 'https_extension' in section: 'oxd'
- DEBUG:oxdpython.messenger:Creating a AF_INET, SOCK_STREAM socket.
- WARNING:oxdpython.configurer:No option 'protection_access_token' in section: 'client'
- WARNING:oxdpython.configurer:No option 'id' in section: 'oxd'
- => Calling setup_client()
- WARNING:oxdpython.configurer:No option 'client_jwks_uri' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_token_endpoint_auth_method' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_id' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_secret' in section: 'client'
- WARNING:oxdpython.configurer:No option 'application_type' in section: 'client'
- WARNING:oxdpython.configurer:No option 'acr_values' in section: 'client'
- WARNING:oxdpython.configurer:No option 'contacts' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_request_uris' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_sector_identifier_uri' in section: 'client'
- WARNING:oxdpython.configurer:No option 'response_types' in section: 'client'
- WARNING:oxdpython.configurer:No option 'ui_locales' in section: 'client'
- WARNING:oxdpython.configurer:No option 'claims_locales' in section: 'client'
- WARNING:oxdpython.configurer:No option 'claims_redirect_uri' in section: 'client'
- DEBUG:oxdpython.client:Sending command `setup_client` with params {'authorization_redirect_uri': 'https://client.example.com/callback', 'client_name': 'oxdpython openid socket test script', 'grant_types': ['authorization_code'], 'post_logout_redirect_uri': 'https://client.example.com/post_logout/', 'client_frontchannel_logout_uris': ['https://client.example.com/logout_callback/'], 'scope': ['openid', 'profile'], 'op_host': 'https://ce-dev4.gluu.org'}
- INFO:oxdpython.messenger:Initiating first time socket connection.
- DEBUG:oxdpython.messenger:Socket connecting to localhost:8099
- DEBUG:oxdpython.messenger:Sending: 0427{"params": {"authorization_redirect_uri": "https://client.example.com/callback", "client_name": "oxdpython openid socket test script", "grant_types": ["authorization_code"], "post_logout_redirect_uri": "https://client.example.com/post_logout/", "client_frontchannel_logout_uris": ["https://client.example.com/logout_callback/"], "scope": ["openid", "profile"], "op_host": "https://ce-dev4.gluu.org"}, "command": "setup_client"}
- DEBUG:oxdpython.client:Received response: {u'status': u'ok', u'data': {u'client_id_issued_at': 1512671098, u'client_registration_client_uri': u'https://ce-dev4.gluu.org/oxauth/restv1/register?client_id=@!38D4.410C.1D43.8932!0001!37F2.B744!0008!248B.4641.926B.1902', u'client_registration_access_token': u'58b62720-9dcd-41b3-afbf-1eac3ea7d380', u'oxd_id': u'db4a1b0c-4979-4423-9133-840725322dfb', u'client_id': u'@!38D4.410C.1D43.8932!0001!37F2.B744!0008!248B.4641.926B.1902', u'client_secret': u'8b044abd-d9c5-47d4-8795-ccb494996867', u'op_host': u'https://ce-dev4.gluu.org', u'client_secret_expires_at': 1512757498}}
- INFO:root:Received: {u'client_id_issued_at': 1512671098, u'client_registration_client_uri': u'https://ce-dev4.gluu.org/oxauth/restv1/register?client_id=@!38D4.410C.1D43.8932!0001!37F2.B744!0008!248B.4641.926B.1902', u'client_registration_access_token': u'58b62720-9dcd-41b3-afbf-1eac3ea7d380', u'oxd_id': u'db4a1b0c-4979-4423-9133-840725322dfb', u'client_id': u'@!38D4.410C.1D43.8932!0001!37F2.B744!0008!248B.4641.926B.1902', u'client_secret': u'8b044abd-d9c5-47d4-8795-ccb494996867', u'op_host': u'https://ce-dev4.gluu.org', u'client_secret_expires_at': 1512757498}
- => Calling get_client_token()
- DEBUG:oxdpython.client:Sending command `get_client_token` with params {'op_host': 'https://ce-dev4.gluu.org', 'client_id': u'@!38D4.410C.1D43.8932!0001!37F2.B744!0008!248B.4641.926B.1902', 'client_secret': u'8b044abd-d9c5-47d4-8795-ccb494996867'}
- DEBUG:oxdpython.messenger:Sending: 0217{"params": {"op_host": "https://ce-dev4.gluu.org", "client_id": "@!38D4.410C.1D43.8932!0001!37F2.B744!0008!248B.4641.926B.1902", "client_secret": "8b044abd-d9c5-47d4-8795-ccb494996867"}, "command": "get_client_token"}
- DEBUG:oxdpython.client:Received response: {u'status': u'ok', u'data': {u'access_token': u'e6b18645-7e06-4ec1-a39a-07d108c74b41', u'scope': u'openid', u'expires_in': 299, u'refresh_token': None}}
- INFO:root:Received: {u'access_token': u'e6b18645-7e06-4ec1-a39a-07d108c74b41', u'scope': u'openid', u'expires_in': 299, u'refresh_token': None}
- => Registering client using register_site()
- WARNING:oxdpython.configurer:No option 'client_jwks_uri' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_token_endpoint_auth_method' in section: 'client'
- WARNING:oxdpython.configurer:No option 'application_type' in section: 'client'
- WARNING:oxdpython.configurer:No option 'acr_values' in section: 'client'
- WARNING:oxdpython.configurer:No option 'contacts' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_request_uris' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_sector_identifier_uri' in section: 'client'
- WARNING:oxdpython.configurer:No option 'response_types' in section: 'client'
- WARNING:oxdpython.configurer:No option 'ui_locales' in section: 'client'
- WARNING:oxdpython.configurer:No option 'claims_locales' in section: 'client'
- WARNING:oxdpython.configurer:No option 'claims_redirect_uri' in section: 'client'
- DEBUG:oxdpython.client:Sending command `register_site` with params {'grant_types': ['authorization_code'], 'client_name': 'oxdpython openid socket test script', 'authorization_redirect_uri': 'https://client.example.com/callback', 'post_logout_redirect_uri': 'https://client.example.com/post_logout/', 'client_frontchannel_logout_uris': ['https://client.example.com/logout_callback/'], 'client_id': u'@!38D4.410C.1D43.8932!0001!37F2.B744!0008!248B.4641.926B.1902', 'client_secret': u'8b044abd-d9c5-47d4-8795-ccb494996867', 'op_host': 'https://ce-dev4.gluu.org', 'scope': ['openid', 'profile']}
- DEBUG:oxdpython.messenger:Sending: 0630{"params": {"authorization_redirect_uri": "https://client.example.com/callback", "client_name": "oxdpython openid socket test script", "grant_types": ["authorization_code"], "protection_access_token": "e6b18645-7e06-4ec1-a39a-07d108c74b41", "post_logout_redirect_uri": "https://client.example.com/post_logout/", "client_frontchannel_logout_uris": ["https://client.example.com/logout_callback/"], "client_id": "@!38D4.410C.1D43.8932!0001!37F2.B744!0008!248B.4641.926B.1902", "client_secret": "8b044abd-d9c5-47d4-8795-ccb494996867", "op_host": "https://ce-dev4.gluu.org", "scope": ["openid", "profile"]}, "command": "register_site"}
- DEBUG:oxdpython.client:Received response: {u'status': u'ok', u'data': {u'op_host': u'https://ce-dev4.gluu.org', u'oxd_id': u'32245833-8e1e-4b68-a8a1-7003ab3a91cf'}}
- INFO:oxdpython.client:Site registration successful. Oxd ID: 32245833-8e1e-4b68-a8a1-7003ab3a91cf
- INFO:root:Received: 32245833-8e1e-4b68-a8a1-7003ab3a91cf
- => Update site registration
- WARNING:oxdpython.configurer:No option 'client_jwks_uri' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_token_endpoint_auth_method' in section: 'client'
- WARNING:oxdpython.configurer:No option 'application_type' in section: 'client'
- WARNING:oxdpython.configurer:No option 'acr_values' in section: 'client'
- WARNING:oxdpython.configurer:No option 'contacts' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_request_uris' in section: 'client'
- WARNING:oxdpython.configurer:No option 'client_sector_identifier_uri' in section: 'client'
- WARNING:oxdpython.configurer:No option 'response_types' in section: 'client'
- WARNING:oxdpython.configurer:No option 'ui_locales' in section: 'client'
- WARNING:oxdpython.configurer:No option 'claims_locales' in section: 'client'
- WARNING:oxdpython.configurer:No option 'claims_redirect_uri' in section: 'client'
- DEBUG:oxdpython.client:Sending `update_site_registration` with params {'authorization_redirect_uri': 'https://client.example.com/callback', 'client_name': 'oxdpython openid socket test script', 'oxd_id': u'32245833-8e1e-4b68-a8a1-7003ab3a91cf', 'post_logout_redirect_uri': 'https://client.example.com/post_logout/', 'client_frontchannel_logout_uris': ['https://client.example.com/logout_callback/'], 'client_id': u'@!38D4.410C.1D43.8932!0001!37F2.B744!0008!248B.4641.926B.1902', 'client_secret': u'8b044abd-d9c5-47d4-8795-ccb494996867', 'grant_types': ['authorization_code'], 'op_host': 'https://ce-dev4.gluu.org', 'scope': ['openid', 'profile']}
- DEBUG:oxdpython.messenger:Sending: 0691{"params": {"authorization_redirect_uri": "https://client.example.com/callback", "client_name": "oxdpython openid socket test script", "oxd_id": "32245833-8e1e-4b68-a8a1-7003ab3a91cf", "protection_access_token": "e6b18645-7e06-4ec1-a39a-07d108c74b41", "post_logout_redirect_uri": "https://client.example.com/post_logout/", "client_frontchannel_logout_uris": ["https://client.example.com/logout_callback/"], "client_id": "@!38D4.410C.1D43.8932!0001!37F2.B744!0008!248B.4641.926B.1902", "client_secret": "8b044abd-d9c5-47d4-8795-ccb494996867", "grant_types": ["authorization_code"], "op_host": "https://ce-dev4.gluu.org", "scope": ["openid", "profile"]}, "command": "update_site_registration"}
- DEBUG:oxdpython.client:Received response: {u'status': u'error', u'data': {u'error_description': u'Registration client URL is invalid. Please check registration_client_url response parameter from IDP (http://openid.net/specs/openid-connect-registration-1_0.html#RegistrationResponse).', u'details': None, u'error': u'invalid_registration_client_url'}}
- Traceback (most recent call last):
- File "openid_commands.py", line 87, in <module>
- run_commands(test_config)
- File "openid_commands.py", line 30, in run_commands
- updated = c.update_site_registration()
- File "/Users/tecoholic/work/oxd-python/oxdpython/client.py", line 353, in update_site_registration
- raise OxdServerError(response['data'])
- OxdServerError: oxd Server Error: invalid_registration_client_url
- Registration client URL is invalid. Please check registration_client_url response parameter from IDP (http://openid.net/specs/openid-connect-registration-1_0.html#RegistrationResponse).
- None
Add Comment
Please, Sign In to add comment