Azure / Azure/azure-quickstart-templates
Error "The security token service endpoint not found" in appredirect.aspx using the default addin project provided by VS2022 templates
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
[SharePoint 2019 adfs](https://github.com/azure/azure-quickstart-templates/tree/master/application-workloads/sharepoint/sharepoint-adfs)
### Error "The security token service endpoint not found" on appredirect.aspx when deploying the PHA project provided by Visual Studio 2022
#### V2022 Version
VS2022

### Repro steps
1. The SharePoint 2019 Adfs successfully installed on Azure
2. Open VS2022 > From the templates > select "SharePoint Addins" > and follow the steps as described in the microsoft documentation.
3. [GitHub Repo for the addin](https://github.com/frompedro/TestPHAApp)
4. On the SharePoint Farm > Create new Site collection > and register the addin on appregnew.aspx page
6. package and copy the Web Code into the IIS
7. Check web.config for the appropriate ClientId and ClientSecret

8. Install "testphaappnow" add in on the site collection
9.When i start the application with the link: "http://spsites/sites/chs/_layouts/15/appredirect.aspx?instance_id={1487ACF3-5D9D-46EF-8B9B-8156E6D793AD}" > it redirects successfully to https://sp:20443/?SPHostUrl=http%3A%2F%2Fspsites%2Fsites%2Fchs&SPLanguage=en%2DUS&SPClientTag=0&SPProductNumber=16%2E0%2E10337%2E12109&SPAppWebUrl=http%3A%2F%2Faddin%2D8cb62f1868d330%2EsharepointApps%2Elocal%2Fsites%2Fchs%2Ftestphaappnow
[Download the Logs.csv](https://github.com/Azure/azure-quickstart-templates/files/13440768/Logs.csv)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the SharePoint ADFS template at application-workloads/sharepoint/sharepoint-adfs and review the appredirect.aspx flow described in the reproduction steps. Inspect the linked TestPHAApp repository, web.config values, and Logs.csv together. Done means identifying why the default VS2022 SharePoint add-in redirects to the security-token error and documenting a verified correction.
Written by the indexing model from the issue text.
Assessment
- Domain
- authentication, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100