Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document The Samples Better #274

Open
opticyclic opened this issue Sep 14, 2020 · 0 comments
Open

Document The Samples Better #274

opticyclic opened this issue Sep 14, 2020 · 0 comments

Comments

@opticyclic
Copy link

Library versions

  • react-aad-msal: 2.3.2
  • msal: 1.3.3

Describe the bug
Following on from #207 the Javascript sample appears to be redirecting to the wrong URL

After testing the MS sample https://github.com/Azure-Samples/active-directory-b2c-javascript-msal-singlepageapp

I modified your sample to have the same config:

auth: {
  authority: "https://mine.b2clogin.com/mine.onmicrosoft.com/B2C_1_signupsignin1",
  clientId: "111xxx11-x111-111x-x11x-111xx11x1x11",
  postLogoutRedirectUri: window.location.origin,
  redirectUri: window.location.origin,
  validateAuthority: true,

The sample tries to get https://login.microsoftonline.com/common//discovery/instance?api-version=1.1&authorization_endpoint=https://mine.b2clogin.com/mine.onmicrosoft.com/b2c_1_signupsignin1/oauth2/v2.0/authorize and logs an error 400.

Expected behavior
If I change validateAuthority: true, to validateAuthority: false, it then gets https://mine.b2clogin.com/mine.onmicrosoft.com/b2c_1_signupsignin1/v2.0/.well-known/openid-configuration and works.

Can you document what this means and add a README to the samples since this is clearly tripping up multiple people.

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

No branches or pull requests

1 participant