Skip to main content

All Questions

Tagged with
0 votes
0 answers
23 views

Azure AD - Code Verifier does not match the Code Challenge supplied

I'm trying to authenticate with Microsoft Azure AD OAUTH 2.0 in my Node.js/TypeScript app. During the repo cloning process, I keep getting this error when handling authentication: AADSTS50148: The ...
Jugert Mucoimaj's user avatar
2 votes
0 answers
215 views

NodeJS MSAL Authentication: 430 4.2.0 STOREDRV Mailbox Logon Failure When Sending Email via Exchange Online SMTP

I am experiencing a persistent issue when attempting to send emails via SMTP using Microsoft Exchange Online in a NodeJS application. The authentication process appears to be successful, but email ...
Renato Rocha's user avatar
0 votes
1 answer
165 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 ...
Simone's user avatar
  • 11
1 vote
1 answer
3k 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 ...
Alok's user avatar
  • 10.8k
0 votes
1 answer
812 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-...
user1063287's user avatar
  • 10.9k
0 votes
1 answer
2k 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] : @...
Vianney's user avatar
0 votes
3 answers
11k 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 ...
user1371314's user avatar
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 ...
Will Volino's user avatar
1 vote
1 answer
354 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: { ...
Kotana Sai's user avatar
  • 1,818
0 votes
1 answer
246 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 ...
N4NO's user avatar
  • 21
0 votes
1 answer
871 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 ...
Photonics Lab's user avatar
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: ...
Rue Vitale's user avatar
  • 1,911
0 votes
1 answer
332 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 ...
sschmeck's user avatar
  • 7,753
1 vote
1 answer
464 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 ...
Quint's user avatar
  • 21
5 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 ...
Sunny G's user avatar
  • 341

15 30 50 per page