question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

passport-azure-ad vs msal-node server side cache/storage

See original GitHub issue

Core Library

MSAL Node (@azure/msal-node)

Core Library Version

1.8.0

Wrapper Library

Not Applicable

Wrapper Library Version

None

Description

From my understanding passport-azure-ad can be configured using cookie-session persisting authentication state in cookies and nothing is stored server side (relying on passport to validate the session etc). With msal-node, there is a default built in in-memory cache and extensions that allow you to persist authentication state to a data layer.

With passport-azure-ad now in maintenance, I was wondering/hoping if msal-node was planning on having a similar setup whereby a server side persistence layer is not needed?

For context, my use case is simply to protect a server endpoint from serving up static assets.

This may well be a silly question, or answered elsewhere but I can’t seem to find an answer.

MSAL Configuration

No response

Relevant Code Snippets

No response

Identity Provider

Azure AD / MSA

Source

External (Customer)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
tnorlingcommented, May 4, 2022

@daniel-crouch We are working on a new token validation library that will replace passport-azure-ad. I don’t have an ETA to share at the moment but it is in active development and we can update this issue when the first version has been released

0reactions
msftbot[bot]commented, May 11, 2022

@daniel-crouch This issue has been automatically marked as stale because it is marked as requiring author feedback but has not had any activity for 5 days. If your issue has been resolved please let us know by closing the issue. If your issue has not been resolved please leave a comment to keep this open. It will be closed automatically in 7 days if it remains stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to migrate a Node.js app from ADAL to MSAL
Apps migrating from ADAL to MSAL should switch to Azure AD v2.0 endpoint. Install and import MSAL. install MSAL Node package via npm:...
Read more >
microsoft-authentication-library-for-js/faq.md at dev - GitHub
MSAL Node should be a choice for desktop apps, web apps, web APIs or server side authentication scenarios. What is MSAL Node extensions?...
Read more >
@azure/msal-node-extensions - npm
Provide a robust, secure and configurable token cache persistence implementation across Windows, Mac and Linux for public client applications (rich clients, CLI ...
Read more >
API won't authenticate against AAD with token passed from ...
I have a SPA app that is successfully authenticating with AAD via MSAL and receiving a token. The SPA app can use the...
Read more >
passport-azure-ad
OIDC and Bearer Passport strategies for Azure Active Directory. ... Microsoft Azure Active Directory Passport.js Plug-In ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found