All Questions
27
questions
0
votes
1
answer
93
views
TypeError: request.deviceCodeCallback is not a function when using MSAL Node
I'm encountering an issue with the MSAL Node library where I'm getting a TypeError regarding request.deviceCodeCallback not being a function. Here are the details:
Relevant Code:
I'm using the ...
0
votes
0
answers
141
views
When using Azure AD as an Identity Provider in Azure AD B2C, idp_access_token returned after signin causes error when passed to acquireTokenOnBehalfOf
Environment:
Node.js
"@azure/msal-node": "^2.6.0"
Short Version:
When calling this:
const response = await confidential_client_application.acquireTokenOnBehalfOf(...
0
votes
0
answers
70
views
Session-file-store not getting all the data from MSAL
Lately I've been expanding on a Microsoft example MS Tutorial to write a web app using MSAL authentication. Works just fine. Normal auth flow seems to be: sign-in => acquire-token. But it got ...
0
votes
1
answer
2k
views
Authentication using the OAuth 2.0 authorization code flow with the Microsoft Identity Platform (Azure AD) and @azure/msal-node in a Node.js backend
I want to implement authentication using the OAuth 2.0 authorization code flow with the Microsoft Identity Platform (Azure AD) and the @azure/msal-node library in a Node.js backend.
So I can call ...
0
votes
1
answer
608
views
How to implement msal-node in a non-monolithic application design that utilises route and middleware modules?
I am creating a Node.js application with Azure AD B2C authentication.
The logic I want to implement is within this sample:
https://github.com/Azure-Samples/active-directory-b2c-msal-node-sign-in-sign-...
0
votes
1
answer
1k
views
Azure MSAL node ClientAuthError
I am trying to use @azure/msal-node on a node backend server.
I follow the tutorial on their Github page and when I try to call acquireTokenByCode i get this error:
[Tue, 30 Aug 2022 08:23:34 GMT] : @...
0
votes
3
answers
9k
views
msal-node error trying to resolve endpoints
I have been using MSAL in my React app for some time with success. One of the tokens that my app requests is for scope 'https://management.core.windows.net/user_impersonation'. I have a nodeJS server ...
0
votes
2
answers
2k
views
401 Unauthorized when making a request to dataverse web api
I am new to dynamics 365 and even newer to the Dataverse Web API. I am trying to create a s2s application in nodejs that will just update a contact on a trigger. I have registered my app in AAD and ...
1
vote
1
answer
318
views
[NodeJs Upgrading from ADAL to MSAL]: Cannot create property 'authenticationScheme' on string
We are Upgrading from ADAL to MSAL when doing so we are facing issues.
The Code we implemented is
const msal = require('@azure/msal-node');
const msalConfig = {
auth: {
...
0
votes
1
answer
193
views
Why does nextjs return an error after exiting the MSAL oauth process?
I'm getting an error building a website with next.js. I've build the site for production running, and after authenticating I get this error below. I have integrated MSAL for authentication which lets ...
0
votes
1
answer
779
views
MSAL login not working in production for node.js , Javascript application
I have used Msal.js for login to microsoft account inorder to call microsoft graph api.
On local everything is working fine but after deployment on production, login is happening but again a login ...
4
votes
1
answer
1k
views
Is this how to get a refresh token using msal-node library?
I'm using the msal nodejs library. I have the following code
const ouathClient = new msal.ConfidentialClientApplication(msalConfig);
const tokenRequest = {
code: request.query.code,
scopes: ...
0
votes
1
answer
295
views
Migrate loginWithUsernamePassword to @azure/identity
I migrate some code from @azure/ms-node-auth to @azure/identity which authenticates against Azure Active Directory (AAD) via loginWithUsernamePassword. The migration guide points to ...
1
vote
1
answer
413
views
401 Error when using post method to create folder
I've setup a Daemon application on a server to create a folder in a SharePoint server using MS Graph's Rest API. When I attempt to create a folder using axios.post(), I get a 401(Unauthorized) error ...
4
votes
1
answer
3k
views
How to store Msal node token cache in database and Stop clearing cache on app restart
I am calling graph apis from my node app. For that i have create confidential client application. I want to store token cache in database(postgres). How can i do that?
Also whenever i restart my node ...