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

Initializing msal instance before handling redirect to fix race condi… #969

Merged
merged 1 commit into from
May 9, 2024

Conversation

alliscode
Copy link
Member

Initializing msal instance before handling redirect to fix race condition when deployed to Azure.

Motivation and Context

We have reports of an 'uninitialized_public_client_application' error when loading the webApp after deploying to Azure.

Description

Contribution Checklist

@github-actions github-actions bot added the webapp Pull requests that update Typescript code label May 9, 2024
@alliscode alliscode added this pull request to the merge queue May 9, 2024
Merged via the queue into main with commit a345f48 May 9, 2024
6 checks passed
@alliscode alliscode deleted the bentho/fix-login branch May 9, 2024 23:33
teamleader-dev pushed a commit to vlink-group/chat-copilot that referenced this pull request Oct 7, 2024
microsoft#969)

Initializing msal instance before handling redirect to fix race
condition when deployed to Azure.

### Motivation and Context

We have reports of an 'uninitialized_public_client_application' error
when loading the webApp after deploying to Azure.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄

Co-authored-by: Ben Thomas <bentho@microsoft.com>
kb0039 pushed a commit to aaronba/chat-copilot that referenced this pull request Jan 8, 2025
microsoft#969)

Initializing msal instance before handling redirect to fix race
condition when deployed to Azure.

### Motivation and Context

We have reports of an 'uninitialized_public_client_application' error
when loading the webApp after deploying to Azure.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [Contribution
Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄

Co-authored-by: Ben Thomas <bentho@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webapp Pull requests that update Typescript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants