Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Project/src/Utils/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ export const utils = {
return response.data;
}
const authConfig = await fetchAuthConfig();
const redirectUri = `${window.location.origin}/blank`;

const oAuthObj = new PublicClientApplication(authConfig.configuration);
const popupLoginResponse = await oAuthObj.loginPopup({scopes: authConfig.scopes.popUpLogin});
const popupLoginResponse = await oAuthObj.loginPopup({scopes: authConfig.scopes.popUpLogin, redirectUri});
const response = await axios({
url: 'teamsPopupLogin',
method: 'POST',
Expand Down Expand Up @@ -149,9 +150,10 @@ export const utils = {
return response.data;
}
const entraCredentialConfig = await fetchEntraConfig();
const redirectUri = `${window.location.origin}/blank`;

const tokenCredential = new InteractiveBrowserCredential({
redirectUri: window.location.href, // e.g., 'http://localhost:3000'
redirectUri, // e.g., 'http://localhost:3000'
...entraCredentialConfig
});
const credential = new AzureCommunicationTokenCredential({
Expand Down
3 changes: 3 additions & 0 deletions Project/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ module.exports = {
res.sendStatus(400);
}
});
devServer.app.get('/blank', async (req, res) => {
res.status(200).send('');
});
devServer.app.post('/createRoom', async (req, res) => {
try {
let participants = [];
Expand Down
Loading