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 · 1 comment
Open

Provider specific settings for Azure B2C #1678

esinmy opened this issue Sep 26, 2024 · 1 comment

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}))
@pamapa
Copy link
Member

pamapa commented Sep 30, 2024

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.

Yes, please provide this section as a merge-request or if not possible post the text here you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants