tecoholic

oxdpython_log_for_update_site

Dec 7th, 2017
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ===============================      WIHTOUT SETUP CLIENT     ===============================
  2. INFO:oxdpython.configurer:Loading config at: /Users/tecoholic/work/oxd-python/examples/e2e_tests/test.cfg
  3. WARNING:oxdpython.configurer:No option 'https_extension' in section: 'oxd'
  4. DEBUG:oxdpython.messenger:Creating a AF_INET, SOCK_STREAM socket.
  5. WARNING:oxdpython.configurer:No option 'protection_access_token' in section: 'client'
  6. WARNING:oxdpython.configurer:No option 'id' in section: 'oxd'
  7.  
  8. => Registering client using register_site()
  9. WARNING:oxdpython.configurer:No option 'client_jwks_uri' in section: 'client'
  10. WARNING:oxdpython.configurer:No option 'client_token_endpoint_auth_method' in section: 'client'
  11. WARNING:oxdpython.configurer:No option 'client_id' in section: 'client'
  12. WARNING:oxdpython.configurer:No option 'client_secret' in section: 'client'
  13. WARNING:oxdpython.configurer:No option 'application_type' in section: 'client'
  14. WARNING:oxdpython.configurer:No option 'acr_values' in section: 'client'
  15. WARNING:oxdpython.configurer:No option 'contacts' in section: 'client'
  16. WARNING:oxdpython.configurer:No option 'client_request_uris' in section: 'client'
  17. WARNING:oxdpython.configurer:No option 'client_sector_identifier_uri' in section: 'client'
  18. WARNING:oxdpython.configurer:No option 'response_types' in section: 'client'
  19. WARNING:oxdpython.configurer:No option 'ui_locales' in section: 'client'
  20. WARNING:oxdpython.configurer:No option 'claims_locales' in section: 'client'
  21. WARNING:oxdpython.configurer:No option 'claims_redirect_uri' in section: 'client'
  22. 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'}
  23. INFO:oxdpython.messenger:Initiating first time socket connection.
  24. DEBUG:oxdpython.messenger:Socket connecting to localhost:8099
  25. 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"}
  26. 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'}}
  27. INFO:oxdpython.client:Site registration successful. Oxd ID: 85a416bb-6779-4629-9c15-9972cae718e0
  28. INFO:root:Received: 85a416bb-6779-4629-9c15-9972cae718e0
  29.  
  30. => Update site registration
  31. WARNING:oxdpython.configurer:No option 'client_jwks_uri' in section: 'client'
  32. WARNING:oxdpython.configurer:No option 'client_token_endpoint_auth_method' in section: 'client'
  33. WARNING:oxdpython.configurer:No option 'client_id' in section: 'client'
  34. WARNING:oxdpython.configurer:No option 'client_secret' in section: 'client'
  35. WARNING:oxdpython.configurer:No option 'application_type' in section: 'client'
  36. WARNING:oxdpython.configurer:No option 'acr_values' in section: 'client'
  37. WARNING:oxdpython.configurer:No option 'contacts' in section: 'client'
  38. WARNING:oxdpython.configurer:No option 'client_request_uris' in section: 'client'
  39. WARNING:oxdpython.configurer:No option 'client_sector_identifier_uri' in section: 'client'
  40. WARNING:oxdpython.configurer:No option 'response_types' in section: 'client'
  41. WARNING:oxdpython.configurer:No option 'ui_locales' in section: 'client'
  42. WARNING:oxdpython.configurer:No option 'claims_locales' in section: 'client'
  43. WARNING:oxdpython.configurer:No option 'claims_redirect_uri' in section: 'client'
  44. 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'}
  45. 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"}
  46. DEBUG:oxdpython.client:Received response: {u'status': u'ok', u'data': {u'oxd_id': u'85a416bb-6779-4629-9c15-9972cae718e0'}}
  47. INFO:root:Received: True
  48.  
  49. => Getting auth URL
  50. DEBUG:oxdpython.client:Sending command `get_authorization_url` with params {'oxd_id': u'85a416bb-6779-4629-9c15-9972cae718e0'}
  51. DEBUG:oxdpython.messenger:Sending: 0098{"params": {"oxd_id": "85a416bb-6779-4629-9c15-9972cae718e0"}, "command": "get_authorization_url"}
  52. 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'}}
  53. 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
  54. 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
  55.  
  56. => Getting tokens by code
  57. 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
  58. 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'}
  59. 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"}
  60. 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'}}
  61. 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'}
  62.  
  63. => Getting user info
  64. 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'}
  65. DEBUG:oxdpython.messenger:Sending: 0146{"params": {"access_token": "8991d264-35b3-46f9-a107-0b5b18514d76", "oxd_id": "85a416bb-6779-4629-9c15-9972cae718e0"}, "command": "get_user_info"}
  66. 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}}
  67. 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']}
  68.  
  69. => Getting new access token using refresh token
  70. 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'}
  71. 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"}
  72. 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'}}
  73. 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'}
  74.  
  75. => Getting Logout URI
  76. DEBUG:oxdpython.client:Sending command `get_logout_uri` with params {'oxd_id': u'85a416bb-6779-4629-9c15-9972cae718e0'}
  77. DEBUG:oxdpython.messenger:Sending: 0091{"params": {"oxd_id": "85a416bb-6779-4629-9c15-9972cae718e0"}, "command": "get_logout_uri"}
  78. 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.eyJpc3MiOiJodHRwczovL2NlLWRldjQuZ2x1dS5vcmciLCJhdWQiOiJAITM4RDQuNDEwQy4xRDQzLjg5MzIhMDAwMSEzN0YyLkI3NDQhMDAwOCE2QUFELjFDOEYuQ0E5Ni5GNkVGIiwiZXhwIjoxNTEyNjc0Mzg4LCJpYXQiOjE1MTI2NzA3ODgsIm5vbmNlIjoicW1rM21kajBibDZtc2wwajhlMjJoYWFxbTAiLCJhdXRoX3RpbWUiOjE1MTI2NzA3NzQsImF0X2hhc2giOiJvNnFuRTJydDZSWU5BZUtfVFJtY0FnIiwib3hPcGVuS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8KjDA5v7RZsdERF6l9Ly8s5ihujE3W_glYw6uFDnvtrprOTu0SLFbAXPUR0ghXTwER2U4zX0317Ks8JcmGJKDQ_vRm5HX7qkQO0DLnRbdk8zsK83kiqn76Dpi_6u7rt9iCUvTKzjhqee8KmYU577eOSOmb2VEtHVU2orUO7Afs6PlyFvhE6BNIA
  81.  
  82.  
  83. =======================    WITH SEUTP CLIENT     ==========================
  84. INFO:oxdpython.configurer:Loading config at: /Users/tecoholic/work/oxd-python/examples/e2e_tests/test.cfg
  85. WARNING:oxdpython.configurer:No option 'https_extension' in section: 'oxd'
  86. DEBUG:oxdpython.messenger:Creating a AF_INET, SOCK_STREAM socket.
  87. WARNING:oxdpython.configurer:No option 'protection_access_token' in section: 'client'
  88. WARNING:oxdpython.configurer:No option 'id' in section: 'oxd'
  89.  
  90. => Calling setup_client()
  91. WARNING:oxdpython.configurer:No option 'client_jwks_uri' in section: 'client'
  92. WARNING:oxdpython.configurer:No option 'client_token_endpoint_auth_method' in section: 'client'
  93. WARNING:oxdpython.configurer:No option 'client_id' in section: 'client'
  94. WARNING:oxdpython.configurer:No option 'client_secret' in section: 'client'
  95. WARNING:oxdpython.configurer:No option 'application_type' in section: 'client'
  96. WARNING:oxdpython.configurer:No option 'acr_values' in section: 'client'
  97. WARNING:oxdpython.configurer:No option 'contacts' in section: 'client'
  98. WARNING:oxdpython.configurer:No option 'client_request_uris' in section: 'client'
  99. WARNING:oxdpython.configurer:No option 'client_sector_identifier_uri' in section: 'client'
  100. WARNING:oxdpython.configurer:No option 'response_types' in section: 'client'
  101. WARNING:oxdpython.configurer:No option 'ui_locales' in section: 'client'
  102. WARNING:oxdpython.configurer:No option 'claims_locales' in section: 'client'
  103. WARNING:oxdpython.configurer:No option 'claims_redirect_uri' in section: 'client'
  104. 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'}
  105. INFO:oxdpython.messenger:Initiating first time socket connection.
  106. DEBUG:oxdpython.messenger:Socket connecting to localhost:8099
  107. 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"}
  108. 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}}
  109. 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}
  110.  
  111. => Calling get_client_token()
  112. 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'}
  113. 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"}
  114. 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}}
  115. INFO:root:Received: {u'access_token': u'e6b18645-7e06-4ec1-a39a-07d108c74b41', u'scope': u'openid', u'expires_in': 299, u'refresh_token': None}
  116.  
  117. => Registering client using register_site()
  118. WARNING:oxdpython.configurer:No option 'client_jwks_uri' in section: 'client'
  119. WARNING:oxdpython.configurer:No option 'client_token_endpoint_auth_method' in section: 'client'
  120. WARNING:oxdpython.configurer:No option 'application_type' in section: 'client'
  121. WARNING:oxdpython.configurer:No option 'acr_values' in section: 'client'
  122. WARNING:oxdpython.configurer:No option 'contacts' in section: 'client'
  123. WARNING:oxdpython.configurer:No option 'client_request_uris' in section: 'client'
  124. WARNING:oxdpython.configurer:No option 'client_sector_identifier_uri' in section: 'client'
  125. WARNING:oxdpython.configurer:No option 'response_types' in section: 'client'
  126. WARNING:oxdpython.configurer:No option 'ui_locales' in section: 'client'
  127. WARNING:oxdpython.configurer:No option 'claims_locales' in section: 'client'
  128. WARNING:oxdpython.configurer:No option 'claims_redirect_uri' in section: 'client'
  129. 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']}
  130. 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"}
  131. 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'}}
  132. INFO:oxdpython.client:Site registration successful. Oxd ID: 32245833-8e1e-4b68-a8a1-7003ab3a91cf
  133. INFO:root:Received: 32245833-8e1e-4b68-a8a1-7003ab3a91cf
  134.  
  135. => Update site registration
  136. WARNING:oxdpython.configurer:No option 'client_jwks_uri' in section: 'client'
  137. WARNING:oxdpython.configurer:No option 'client_token_endpoint_auth_method' in section: 'client'
  138. WARNING:oxdpython.configurer:No option 'application_type' in section: 'client'
  139. WARNING:oxdpython.configurer:No option 'acr_values' in section: 'client'
  140. WARNING:oxdpython.configurer:No option 'contacts' in section: 'client'
  141. WARNING:oxdpython.configurer:No option 'client_request_uris' in section: 'client'
  142. WARNING:oxdpython.configurer:No option 'client_sector_identifier_uri' in section: 'client'
  143. WARNING:oxdpython.configurer:No option 'response_types' in section: 'client'
  144. WARNING:oxdpython.configurer:No option 'ui_locales' in section: 'client'
  145. WARNING:oxdpython.configurer:No option 'claims_locales' in section: 'client'
  146. WARNING:oxdpython.configurer:No option 'claims_redirect_uri' in section: 'client'
  147. 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']}
  148. 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"}
  149. 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'}}
  150. Traceback (most recent call last):
  151.   File "openid_commands.py", line 87, in <module>
  152.     run_commands(test_config)
  153.   File "openid_commands.py", line 30, in run_commands
  154.     updated = c.update_site_registration()
  155.   File "/Users/tecoholic/work/oxd-python/oxdpython/client.py", line 353, in update_site_registration
  156.     raise OxdServerError(response['data'])
  157. OxdServerError: oxd Server Error: invalid_registration_client_url
  158.  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).
  159. None
Add Comment
Please, Sign In to add comment