Azure AD
3 TopicsError: AADSTS500011: The resource principal named '*URL*' was not found in the tenant.
We are trying to add an app to our SharePoint Online site using the template from https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part and we get the error below when we deploy to SharePoint and add the app/Webpart to a test SharePoint site. Found [object Object]Driver Display External Error: Error: AADSTS500011: The resource principal named https://driverdisplayexternal.azurewebsites.net was not found in the tenant named 7018324c-9efd-4880-809d-b2e6bb1606b6. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. Trace ID: 358b22eb-cd2c-4091-b592-5a57cbc21d00 Correlation ID: ec96d656-1a36-42e2-a2b9-3ff78efc1e2e Timestamp: 2019-10-01 16:26:06Z We have added a call to our own client as shown below. We are not sure why the resource principal was not found. The Tenant ID's match and things seem to be set up properly for authentication. Has anyone else encountered this issue or know where to look for the issue? Thanks in advance!7.6KViews0likes2CommentsHow to securize redirection with Azure AD in a WebPart?
I have developed a Sharepoint Webpart. The aim of this component is simple, authenticate the user in an external website that is embedded inside de Sharepoint. The external website uses Azure AD to login the users. The problem that I have is the following. I know how to get obtain an access token, and the component works fine, with a great security leak. This is that I have public render(): void { token="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; <iframe img src="https://www.example.org/oauthCallback.html?token="+token/> } For this reason, I'm trying to change for something like: public render(): void { <iframe img src="Azure redirection"/> } Azure redirection -> verify the user context with Azure AD -> redirect the callback to https://www.example.org/oauthCallback.html I want securize this process with Azure AD, but I don't know how to do. Any idea? Regards1KViews0likes1Comment