Skip to content

Add allowedDomains to Microsoft connector. - #3515

Open
maordavidov wants to merge 2 commits into
dexidp:masterfrom
maordavidov:master
Open

Add allowedDomains to Microsoft connector.#3515
maordavidov wants to merge 2 commits into
dexidp:masterfrom
maordavidov:master

Conversation

@maordavidov

Copy link
Copy Markdown

The existing Microsoft connector does not support allowedDomains like Google connector or other connectors allows.

Overview

The existing Microsoft connector does not support allowedDomains like Google connector or other connectors.

What this PR does / why we need it

Microsoft connector supports too-open or too-close scenarios (either all organizations/schools or all users or on the other hand only one specific tenant). Our organization needs to approve a list of domains like Google connector supports.
This PR adds the logic to verify the specific domain is approved to receive a token from Dex.

Special notes for your reviewer

maordavidov and others added 2 commits August 2, 2026 12:26
The existing Microsoft connector does not support allowedDomains like Google connector or other connectors allows.
govulncheck reported 11 called vulnerabilities in the Go standard
library against the go 1.25.8 directive. All are fixed by 1.25.12:

  GO-2026-5856  crypto/tls
  GO-2026-5039  net/textproto
  GO-2026-5037  crypto/x509
  GO-2026-4982  html/template
  GO-2026-4980  html/template
  GO-2026-4971  net
  GO-2026-4947  crypto/x509
  GO-2026-4946  crypto/x509
  GO-2026-4918  net/http
  GO-2026-4870  crypto/tls
  GO-2026-4865  html/template

govulncheck ./... is now clean for called symbols.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant