All Questions
67
questions
0
votes
1
answer
139
views
Facing 401 error while calling an api in react js with MSAL setup
I am trying to use MSAL library by Microsoft in my react js project. We have done the app registration for both front-end(react js) and backend(api). Currently, I am testing this in my local machine ...
1
vote
0
answers
153
views
When logging in with MsalAuthenticationTemplate and it redirects me to my website, it gives a rendering error
When i go to my site it redirects me to the external login and i perform a login. Good so far, but then it redirects me to my site and i get the errors.
The two errors i get:
Warning: Cannot update a ...
0
votes
0
answers
86
views
msal-browser failed in Office Addin Dialog API
I am trying to use @azure/msal-browser and @azure/msal-react to enable Excel addin support microsoft sso and access Graph api.
Due to that Excel addin does not support access external url from Excel ...
3
votes
0
answers
287
views
Unable to run react jest test cases azure msal
I am working on react app, integrated msal library for azure authentications. I am trying to setup jest in project to run test cases. But i am getting error while running tests.
export { MsalConsumer,...
0
votes
0
answers
59
views
Microsoft sso login is not logging in the user neither getting details about the account
This is my react app which handles sso login using a subdomain and fetches configuration dynamically. This is my code for a hook which fetches configuration dynamically from database.
import { ...
0
votes
1
answer
223
views
Why app react don't work in server dev? Using msal-react
My page authentication works perfectly in localhost, but in the dev server the page is blank and in the console: Error in server dev: The above error occurred in the MsalProvider component.
Help me, ...
0
votes
0
answers
195
views
Microsoft Teams React-App SSO not working on iOS mobile
I am creating a react app for teams. Using the teams-toolkit i added SSO as instructed in their doku. Everything works fine, i can login users and get accessTokens to call my secured BE. But for some ...
0
votes
1
answer
663
views
Cannot close popup login MSAL with React
im trying to login using MSAL with react.
I make code for recover the token generated by MSAL (for later use it with fetch methods); in the process i use the method loginPopup() for open a popup where ...
2
votes
0
answers
667
views
No accounts found in useMsal hook when using loginRedirect
I'm trying to use MSAL to authenticate users. If I authenticate using instance.loginRedirect()the value of accounts from calling useMsal() is always an empty array, but is correctly populated if I use ...
1
vote
1
answer
232
views
The offline scope is automatically added in the Microsoft Identity Platform
I have developed an app where users can log in with their Microsoft account using MSAL.js. The problem is that when users try to log in with a work account, they are prompted for administrator ...
0
votes
2
answers
1k
views
How to maintain the IdToken after page reload in MSAL React App?
I am using MSAL in React App. After the sign-in, I am getting the details using this code-
const [userDetails, setUserDetails] = useState(null);
useEffect(() => {
instance
....
0
votes
1
answer
538
views
How to integrate react-native-msal with an expo managed app?
I'm trying to integrate react-native-msal with an expo managed app, I keep getting this error when I try to initialize the public client application instance:
Error initializing the pca, check your ...
2
votes
2
answers
3k
views
Getting undefined (reading 'getLogger') with Msal Provider React TS + Vite
I'm trying to use the ms-identity-javascript-react-tutorial to manage users (sign-in/up).
This is guide I'm following https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/3-...
1
vote
0
answers
462
views
React MSAL authentication failing after deployment of static web app
I have a static web app with some config settings.
I created a React app with MSAL authentication.
On clicking this URL:
I see this on F12 -> Network:
(tenant id missing in request URL). I have ...
1
vote
0
answers
176
views
B2C multiple Msal Instances handling
Am using two instances, one for normal login and two for connect to tenet in 'react'. Here am using useMsal()
method from the azure pkg to get the instance created. so, now i want to implement ...