Skip to content

fix: update Azure B2C base URL to allow custom domains#1013

Merged
nijel merged 2 commits intopython-social-auth:masterfrom
Danyal-Faheem:master
Feb 5, 2025
Merged

fix: update Azure B2C base URL to allow custom domains#1013
nijel merged 2 commits intopython-social-auth:masterfrom
Danyal-Faheem:master

Conversation

@Danyal-Faheem
Copy link
Copy Markdown
Contributor

fixes #809.

The Authority Host can be defined to be a custom domain as well using front door in Azure. With this, the tenant name is not prefixed to the authority host in the base url.

We update this by prefixing the tenant name with the default authority host only if the authority host is not defined.

fixes python-social-auth#809.

The Authority Host can be defined to be a custom domain as well using front door in Azure. With this, the tenant name is not prefixed to the authority host in the base url.

We update this by prefixing the tenant name with the default authority host only if the authority host is not defined.
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.99%. Comparing base (326d4b3) to head (6b63935).
Report is 71 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1013      +/-   ##
==========================================
+ Coverage   77.88%   77.99%   +0.10%     
==========================================
  Files         347      347              
  Lines       10669    10688      +19     
  Branches      504      454      -50     
==========================================
+ Hits         8310     8336      +26     
+ Misses       2200     2192       -8     
- Partials      159      160       +1     
Flag Coverage Δ
unittests 77.99% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nijel nijel merged commit f0d45b7 into python-social-auth:master Feb 5, 2025
11 checks passed
@nijel
Copy link
Copy Markdown
Member

nijel commented Feb 5, 2025

Merged, thanks for your contribution!

@nijel nijel self-assigned this Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect base url for azuread b2c backend

2 participants