Skip to content

Commit

Permalink
reverted my code
Browse files Browse the repository at this point in the history
  • Loading branch information
vimugdhabatra committed Jan 3, 2025
1 parent 03ff3c9 commit ca3fbd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions admin_login/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ def _get_azure_signup_url(self):
"""
Generate the URL for Azure AD B2C authorization.
"""
tenant_id = get_azure_auth_details()['tenant_id']
authority = f'https://{tenant_id}.b2clogin.com/{tenant_id}.onmicrosoft.com/v2.0'
authority = 'https://iogt.b2clogin.com/iogt.onmicrosoft.com/v2.0'
client_id = get_azure_auth_details()['client_id']
redirect_uri = get_azure_auth_details()['redirect_uri']
policy = get_azure_auth_details()['policy']
Expand Down
2 changes: 2 additions & 0 deletions iogt/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,8 @@


CURRENT_DOMAIN = os.getenv('CURRENT_DOMAIN')
AZURE_AD_TENANT_ID = os.getenv("AZURE_AD_TENANT_ID")
AZURE_AD_SIGNUP_SIGNIN_POLICY = os.getenv("AZURE_AD_SIGNUP_SIGNIN_POLICY")

SOCIALACCOUNT_PROVIDERS = {
'azure': { # Use 'azure' as the key here
Expand Down

0 comments on commit ca3fbd8

Please sign in to comment.