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

Provider specific settings for Azure B2C #1678

Open
esinmy opened this issue Sep 26, 2024 · 0 comments
Open

Provider specific settings for Azure B2C #1678

esinmy opened this issue Sep 26, 2024 · 0 comments

Comments

@esinmy
Copy link

esinmy commented Sep 26, 2024

I faced a few issues when setting up the configuration for Azure B2C, but it finally works.

The documentation has a section titled 'Provider-specific settings' which contains a configuration for Amazon Cognito. I would suggest adding the following for Azure B2C.

const mgr = new UserManager({
  // ...
  // automaticSilentRenew is turned off because redirect_uri is not passed to the signinSilent call inside SilentRenewService._tokenExpiring (oidc-client-ts.js)
  // If redirect_uri is not passed, it causes the error: "AADB2C90083: The request is missing required parameter: redirect_uri" during silent sign-in.
  // To handle automaticSilentRenew manually, userManager.events.addAccessTokenExpiring is set as shown below.
  automaticSilentRenew: false,
});

mgr.events.addAccessTokenExpiring(() => void userManager.signinSilent({redirect_uri}))
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