Skip to content

Need 2nd redirect URL in app registrationΒ #985

@Rick-Kirkham

Description

@Rick-Kirkham

URL of sample

Office-Add-in-SSO-NAA

Describe the bug

The README instructs the user to create only one redirect URL when registering the app in Entra; specifically brk-multihub://localhost:3000. This is the sentence: "In the Redirect URI section, ensure that Single-page application (SPA) is selected in the drop down and then set the URI to brk-multihub://localhost:3000."

But I get an error when I press either of the buttons on the task pane saying that the redirect URL in the request, https://localhost:3000/taskpane.html, is not in the list of redirect URLs.

I went back to the registration and added an additional redirect URL for https://localhost:3000/taskpane.html. This fixed the error and everything works.

Unless there's something going on that I don't understand, I think the README should be updated to instruct the user to add the additional redirect URL.

To Reproduce

Steps to reproduce the behavior:

  1. Just follow the README instructions until you press a button on the task pane. Then you'll get the error.

Expected behavior

The user data is fetched when a button is pushed.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  • Platform [PC desktop, Mac, iOS, Office Online]: PC desktop
  • Host [Excel, Word, PowerPoint, etc.]: reproduced with Excel and Word
  • Office version number: 2507 (Build 19008.20000)
  • Operating System: Win11
  • Browser (if using Office Online): ______

Additional context

FWIW, I notice that the READMEs for some of the other samples that have "NAA" in the title DO instruct the user to add more than one Redirect URL when registering the add-in.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions