You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I would like to clarify whether I am configuring the redirect URI incorrectly or if this is expected behavior.
I followed the documentation and installed the SharePoint SSO Component on SharePoint Online. This setup successfully added a chatbot launch button to the bottom of every page on the SPO site.
However, when I press the button, it gets stuck in an access loop. Checking the browser's Developer Tools, I found the following error:
Request Id: c30fc620-389b-4dbf-8490-8950b4592900
Correlation Id: a78e93db-7cf0-4723-852f-e8d76791edef
Timestamp: 2025-01-28T14:07:48Z
Message: AADSTS50011: The redirect URI 'https://<tenant>.sharepoint.com/sites/ai-tech/SitePages/CollabHome.aspx' specified in
the request does not match the redirect URIs configured for the application '4c8407d8-c062-476f-9d24-4e85a5dd9xxx'.
Make sure the redirect URI sent in the request matches one added to your application in the Azure portal.
Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.
When I registered the full page URI as a redirect URI in the canvas app under "Single-page application," the chatbot screen displayed correctly (although it still prompts for a login token, so there are remaining issues).
Do I need to register each SPO page (.aspx) that might be an access source as a redirect URI?
The text was updated successfully, but these errors were encountered:
By default, redirectUri in MSAL takes the current browser's location - which can be any page in your site, since the customizer is in the footer for the entire site. App Registration also doesn't allow wildcard redirect uri.
In my case, I override mine with an additional webpart config. But you can hardcode it to a specific URI.
https://<tenant>.sharepoint.com/sites/ai-tech/
and just don't bother with registering other URIs. I think this is a better approach.
Hello, I would like to clarify whether I am configuring the redirect URI incorrectly or if this is expected behavior.
I followed the documentation and installed the SharePoint SSO Component on SharePoint Online. This setup successfully added a chatbot launch button to the bottom of every page on the SPO site.
However, when I press the button, it gets stuck in an access loop. Checking the browser's Developer Tools, I found the following error:
When I registered the full page URI as a redirect URI in the canvas app under "Single-page application," the chatbot screen displayed correctly (although it still prompts for a login token, so there are remaining issues).
Do I need to register each SPO page (.aspx) that might be an access source as a redirect URI?
The text was updated successfully, but these errors were encountered: