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

msalConfig auth authority URL

Ouverte
#142 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
PowerShell
Étoiles
75
Forks
65
Métriques de merge des PR
Aucune PR mergée en 30 j

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.
},
...
}
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par ms-identity-ciam-javascript-tutorial\1-Authentication\0-sign-in-vanillajs\App\public\authConfig.js et reproduisez le flux de connexion avec chaque URL d’autorité indiquée dans l’issue. Comparez le comportement obtenu et confirmez le format d’autorité attendu pour cette configuration du tutoriel.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript
Domaine
authentication, frontend
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.