Hi @Irek Singer ,
Welcome to Q&A forum!
The error message you are seeing indicates that the realm you are trying to use is not configured for the current service namespace. This can happen if the realm is not properly registered with ACS. To fix this issue, you can try the following steps:
- Make sure that the realm is properly registered with ACS. You can check this by going to the ACS management portal and verifying that the realm is listed under the "Relying party applications" section.
- Check that the client ID and client secret information in your SharePoint Add-in's web.config file are correct and match the information in the ACS management portal.
- Verify that the redirect URI specified in your SharePoint Add-in's registration matches the redirect URI specified in your web.config file.
- Check that the domain names in your configuration files and registration forms match exactly. This includes the Add-in Domain specified when the SharePoint Add-in is registered, the domain under which the remote web application's security certificate is registered, the domain part of the StartPage value in the AppManifest.xml file, and the domain part of the URLs of any event receivers specified in the AppManifest.xml.
And please note that SharePoint Server 2013 has reached the end of its lifecycle, and Microsoft no longer provides any security updates or paid support. For the sake of your information security and better user experience, it is recommended that you upgrade to the latest version of SharePoint server or SharePoint Online.
If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.