Comments (5)
Hi
I've found a way to trigger this consistently after the Add-in is setup. And a workaround to bypass the error.
Triggering the error
If I change (or remove) the Redirect URIs in SPA setup in Authentication in the AAD App I can trigger the usual
Sorry, but weβre having trouble signing you in.
AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application
error, as expected.
Now I can close the popup, change the Redirect URIs back to the valid URI and trigger login (signInO365) which should work, but I get the error as described in this issue.
Bypass error
To bypass this I clear cookies (on my domain), not localStorage
or sessionStorage
, but cookies.
MSAL will create a bunch of non-HttpOnly cookies, and by clearing these the login will work as expected.
There is a bug in the sample, where the Promise
from msalInstance.loginRedirect
is ignored, this is where I add a catch
and do something like this: https://stackoverflow.com/a/179514 .
I tried to find some "clear" method in MSAL, but didn't see anything.
from office-add-in-samples.
Hi @inspiraller and @eirikb,
Yes, following @eirikb's repo steps I see this same problem. @inspiraller does clearing the cookies fix the issue for you? I'm checking with the team to see if there's a better solution. Thanks!
from office-add-in-samples.
Hi @inspiraller,
I apologize as I missed an important detail in your repo steps. Your steps indicate that you configured a web redirect. You need to use an SPA redirect since this sample is a single-page application. You can configure this from the Redirect URIs links on the Overview page in your App registration on the Azure portal. This will take you to the Platform configurations page where you can Add a platform and then choose Single-page application.
Hope this helps,
David
from office-add-in-samples.
This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!
from office-add-in-samples.
This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.
from office-add-in-samples.
Related Issues (20)
- Unable to sideload the example HOT 3
- Word Addin in NET CORE 7.0 with MVC HOT 9
- doc: broken image links on Readme.md of hello-world HOT 2
- Word Add-in in NET CORE 8 with blazor HOT 3
- Request for Office Addin Sample for Blazor with SSO integration HOT 5
- Inquiry Regarding Suitable Framework for Office Add-ins Development HOT 3
- Javascript exception on initial attempt at running Office-Add-in-ASPNET-SSO sample HOT 10
- Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize HOT 1
- Need admin privs to npx install, no? HOT 2
- Outlook event-based activation examples are immature HOT 1
- Converting Outlook VSTO add-in to web add-in HOT 5
- Example works only in OWA HOT 5
- Office-Add-in-NodeJS-SSO Example fails to claim scope HOT 1
- Sample: Outlook-Add-in-SSO-NAA HOT 9
- How to debug against outlook online account with MFA? HOT 4
- Not able to display Html HOT 5
- Error when using non-localhost as redirect URI. HOT 6
- How to create Word Add-in SplitButton Control? HOT 1
- Office.AutoShowTaskpaneWithDocument with shared runtime?
- Outlook-Add-in-SSO-NAA:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-add-in-samples.