Azure-Samples / Azure-Samples/ms-identity-ciam-javascript-tutorial

msalConfig auth authority URL

Open
#142 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
75
Forks
65
PR merge metrics
No merged PRs in 30d

Description

It is not working if the authority URL in `authConfig.js` (`ms-identity-ciam-javascript-tutorial\1-Authentication\0-sign-in-vanillajs\App\public\authConfig.js`) is `https://.ciamlogin.com/`, but it works with `https://.ciamlogin.com//v2.0`

```js
const msalConfig = {
auth: {
clientId: 'Enter_the_Application_Id_Here', // This is the ONLY mandatory field that you need to supply.
authority: 'https://Enter_the_Tenant_Subdomain_Here.ciamlogin.com/Enter_the_Tenant_Subdomain_Here/v2.0', // Replace the placeholders with your tenant subdomain
redirectUri: 'http://localhost:3000/redirect', // You must register this URI on Microsoft Entra admin center/App Registration. Defaults to window.location.href e.g. http://localhost:3000/
navigateToLoginRequestUrl: true, // If "true", will navigate back to the original request location before processing the auth code response.
},
...
}
```

Contributor guide

Open the contributing guide

Research direction

Start with ms-identity-ciam-javascript-tutorial\1-Authentication\0-sign-in-vanillajs\App\public\authConfig.js and reproduce the sign-in flow with each authority URL shown in the issue. Compare the resulting behavior and confirm the expected authority format for this tutorial configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.