Skip to content

Commit

Permalink
Rename oAuth clients key (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Haseeb authored May 31, 2021
1 parent 51cf14c commit 05c0f7c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'platform_name',
'discovery_site',
'theme_dir_name',
'oauth_clients'
'oauth2_clients'
]

EDLY_PANEL_WORKER_USER = 'edly_panel_worker'
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def setUp(self):
platform_name='Edly',
discovery_site='example.discovery',
theme_dir_name='openedx',
oauth_clients={
oauth2_clients={
'credentials-sso': {
'id': 'credentials-sso-key',
'secret': 'credentials-sso-secret'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_credentials_site_configuration(request_data):
protocol=protocol,
lms_root_domain=lms_site,
)
oauth2_clients = request_data.get('oauth_clients', {})
oauth2_clients = request_data.get('oauth2_clients', {})
credentials_sso_values = oauth2_clients.get('credentials-sso', {})
credentials_backend_values = oauth2_clients.get('credentials-backend', {})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def setUp(self):
platform_name='Edly',
discovery_site='example.discovery',
theme_dir_name='openedx',
oauth_clients={
oauth2_clients={
'credentials-sso': {
'id': 'credentials-sso-key',
'secret': 'credentials-sso-secret'
Expand Down Expand Up @@ -61,7 +61,7 @@ def test_get_credentials_site_configuration(self):
protocol=protocol,
lms_root_domain=lms_site,
)
oauth2_clients = self.request_data.get('oauth_clients', {})
oauth2_clients = self.request_data.get('oauth2_clients', {})
credentials_sso_values = oauth2_clients.get('credentials-sso', {})
credentials_backend_values = oauth2_clients.get('credentials-backend', {})
expected_site_configuration = {
Expand Down

0 comments on commit 05c0f7c

Please sign in to comment.