Skip to content

Commit

Permalink
Merge pull request #480 from yuvipanda/nonexistent-urls
Browse files Browse the repository at this point in the history
Handle clients where callback / logout URLs were never set
  • Loading branch information
GeorgianaElena authored Jun 23, 2021
2 parents 310e363 + 7081170 commit 57cd323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployer/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _ensure_client_callback(self, client, callback_url):
"""
Ensure client has correct callback URL
"""
if client['callbacks'] != [callback_url]:
if 'callbacks' not in client or client['callbacks'] != [callback_url]:
self.auth0.clients.update(
client['client_id'],
{
Expand All @@ -77,7 +77,7 @@ def _ensure_client_callback(self, client, callback_url):
)

def _ensure_client_logout_url(self, client, logout_url):
if client['allowed_logout_urls'] != [logout_url]:
if 'allowed_logout_urls' not in client or client['allowed_logout_urls'] != [logout_url]:
self.auth0.clients.update(
client['client_id'],
{
Expand Down

0 comments on commit 57cd323

Please sign in to comment.