Azure / Azure/static-web-apps

AAD - Limiting access only to AD users in tenant?

Open
#1,210 1 comment 0 reactions 0 assignees View on GitHub
triaged
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Hi,

I have AAD authentication setup, which I expected to only allow active accounts in AD to sign in. I just realized that I am able to sign in and view authenticated content with my personal microsoft account, which is not a member of the AD tenant. How do I simply allow only active AD accounts in X-X-X-X tenant to access the content? Below are the config settings

` "routes": [
{
"route": "/*",
"allowedRoles": [ "authenticated" ]
}
],
"auth": {
"identityProviders": {
"azureActiveDirectory": {
"registration": {
"openIdIssuer": "https://login.microsoftonline.com/X-X-X-X/v2.0",
"clientIdSettingName": "AZURE_CLIENT_ID",
"clientSecretSettingName": "AZURE_CLIENT_SECRET"
}
}
}
}`

Thanks in advance.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.