Skip to content

feat(azuread): add authority selection, PKCE and B2C logout - #2041

Merged
nijel merged 1 commit into
masterfrom
azure
Oct 1, 2026
Merged

nijel merged 1 commit into
masterfrom
azure

Conversation

@nijel

@nijel nijel commented Oct 1, 2026

Copy link
Copy Markdown
Member

Azure integrations need matching endpoints for their sign-in audience, optional PKCE and provider logout without custom backends. Preserve existing defaults and keep refreshed credentials and expiry in sync.

Fixes #748
Fixes #751
Fixes #814
Fixes #1929
Refs #459
Refs #1928

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T16:40:44.157105Z 844b34d New commits
🔒 Security Review ✅ Completed 2026-10-01T16:33:23.993903Z 2eaf54b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

from social_core.exceptions import AuthException

if TYPE_CHECKING:
from social_core.backends.azuread import AzureADOAuth2
if TYPE_CHECKING:
from social_core.backends.azuread import AzureADOAuth2

from .oauth import OAuth2Test
and parsed.path.strip("/")
):
return authority_url.rstrip("/")
except ValueError:
@codecov

codecov Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.90%. Comparing base (4b23c3a) to head (844b34d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2041      +/-   ##
==========================================
+ Coverage   91.75%   91.90%   +0.14%     
==========================================
  Files         356      357       +1     
  Lines       16160    16354     +194     
  Branches      821      832      +11     
==========================================
+ Hits        14828    15030     +202     
+ Misses       1089     1082       -7     
+ Partials      243      242       -1     
Flag Coverage Δ
unittests 91.90% <100.00%> (+0.14%) ⬆️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Azure integrations need matching endpoints for their sign-in audience,
optional PKCE and provider logout without custom backends. Preserve existing
defaults and keep refreshed credentials and expiry in sync.

Fixes #748
Fixes #751
Fixes #814
Fixes #1929
Refs #459
Refs #1928
@nijel
nijel enabled auto-merge (rebase) October 1, 2026 16:41
@nijel
nijel merged commit 5d8e14c into master Oct 1, 2026
37 checks passed
@nijel
nijel deleted the azure branch October 1, 2026 16:43
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.

PKCE not available in AzureAD OAuth Add logout request for AD B2C backend Authentication with Microsoft Azure AD in a multi-tenant app

1 participant