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.

MSAL Conflict with Infopath in Sharepoint 2013 on premise

See original GitHub issue

Library

  • `@azure/msal-browser@2.13.0

Framework

None

Description

We have a javascript SPA using MSAL to display users Office 365 mail and calendar inside Sharepoint 2013 On Premise. The app works on dev and test servers, on production it throws auth related error for some users.

Error Message

Uncaught (in promise) TypeError: t.scopes.add is not a function at msal-browser.min.js:32 at Array.forEach (<anonymous>) at new e (msal-browser.min.js:32) at t.addScopes (msal-browser.min.js:32) at r.createAuthCodeUrlQueryString (msal-browser.min.js:32) at r.<anonymous> (msal-browser.min.js:32) at msal-browser.min.js:32 at Object.next (msal-browser.min.js:32) at msal-browser.min.js:32 at i.e._execute (bluebird.min.js:29) at i._resolveFromExecutor (bluebird.min.js:30) at new i (bluebird.min.js:30) at d (msal-browser.min.js:32) at r.getAuthCodeUrl (msal-browser.min.js:32) at a.<anonymous> (msal-browser.min.js:32) at msal-browser.min.js:17

MSAL Configuration

Reproduction steps

Expected behavior

User is authenticated and call to graph mail and calendar returns user’s mail and calendar data to display in app.

Identity Provider

  • Azure AD

Browsers/Environment

  • Chrome
  • Firefox
  • Edge

Regression

  • Did this behavior work before? It works on our own DEV and TEST servers.

Security

N/A

Source

Internal

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jasonnuttercommented, Apr 13, 2021

@bbarnwell Yep, pages that are loaded inside iframes cannot auth via redirects. Apps running in iframes can only silent and popup based requests.

0reactions
github-actions[bot]commented, Apr 28, 2021

This issue has not seen activity in 14 days. If your issue has not been resolved please leave a comment to keep this open. It will be closed in 7 days if it remains stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SHAREPOINT 2013 ENTERPRISE ON-PREMISE ERROR ...
Hi,. Started getting the above error message today. The InfoPath form was working well with no errors. It is connected to a single...
Read more >
Using MSAL.js 2.0 in SharePoint Framework (SPFx)
Great article. We are implementing a SPA with MSAL 2.0 on a Sharepoint 2013 on premise page. This page also contains an Infopath...
Read more >
Newest 'sharepoint' Questions - Page 25 - Stack Overflow
INTRO: I have a Databricks notebook where I create a pdf file based on some data. In order to generate the file I...
Read more >
Resale Supplier Approval Packet Non-Stock R 05.22.2015.doc
Submit malware for free analysis with Falcon Sandbox and Hybrid Analysis technology. Hybrid Analysis develops and licenses analysis tools to ...
Read more >
Programming Microsoft Office 365 - Paolo Pialorsi | PDF - Scribd
Additionally, this prevents any conflict between different ... SharePointPnPCore2013 Targets SharePoint 2013 on-premises and uses the CSOM
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