Azure / Azure/static-web-apps

AAD B2B organisation details

Open
#556 2 comments 0 reactions 0 assignees View on GitHub
AuthN/Z
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Hi,
I'm currently working on a static web-app that is providing a client and a business portal. I configured the aad auth provider with the B2B active directory tenant details and added a custom open-id connect provider with the B2C tenant details.

As the JWT tokens do not exposed I wanted to understand how I can receive additional details for the loggedin user like i.e. organization details or name, last name and email from the graph API?

This is the configuration that I'm currently using
```json
"auth": {
"identityProviders": {
"azureActiveDirectory": {
"registration": {
"openIdIssuer": "https://login.microsoftonline.com//v2.0",
"clientIdSettingName": "AAD_CLIENT_ID",
"clientSecretSettingName": "AAD_CLIENT_SECRET"
}
},
"customOpenIdConnectProviders": {
"aad-b2c": {
"registration": {
"clientIdSettingName": "AAD_B2C_CLIENT_ID",
"clientCredential": {
"clientSecretSettingName": "AAD_B2C_CLIENT_SECRET"
},
"openIdConnectConfiguration": {
"wellKnownOpenIdConfiguration": "https://.b2clogin.com/.onmicrosoft.com/v2.0/.well-known/openid-configuration?p=B2C_1_signup_signin"
}
},
"login": {
"nameClaimType": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name",
"scopes": [
"openid profile email"
],
"loginParameterNames": []
}
}
}
}
}
```

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.