Comments (11)
Hi!
I had this same problem and was able to resolve it. In the NEW portal you need to edit the manifest of the native application and set "availableToOtherTenants" flag to true. By default the NEW portal sets it to false (the old portal used to set it to true by default).
HTH
from active-directory-dotnet-webapp-multitenant-openidconnect.
I'm having the same problem using NEW azure portal, when I register a new native application with all the permissions needed and I try to obtain the access token using:
AuthenticationResult authResult = null;
string resource = "https://management.core.windows.net/";
var authenticationContext = new AuthenticationContext("https://login.windows.net/" + tenantId);
try
{
authResult = authenticationContext.AcquireToken(resource,
appId,
new UserCredential(
partnerCenterUser,
partnerCenterPassword
)
);
}
catch (Exception ex)
{
throw;
}
return authResult;
I obtain the error message:
AADSTS70001: Application with identifier '4f7d5168-f754-42ed-a43d-1f0363ede30e' was not found in the directory tenantresellernew30.onmicrosoft.com
Trace ID: 182d19d7-68a7-4a48-bee1-f87486d31c66
Correlation ID: 75ef5bbb-06f9-4a06-a384-45860dae2568
Timestamp: 2016-10-13 07:32:25Z
I'm using sandbox account to perform the tests, but also in production we are facing this problem.
Any help is welcome because we are stucked and we need to integrate azure in our multi-tenant environment.
from active-directory-dotnet-webapp-multitenant-openidconnect.
Hey Darek. Is the application XXX set as a multi-tenant application in the azure portal?
What was the domain of the user you attempted to sign in as? Was it YYY.onmicrosoft.com?
from active-directory-dotnet-webapp-multitenant-openidconnect.
Yes and yes.
Provisioning with an admin account works.
Sent from my Windows Phone
From: Danny Strockismailto:[email protected]
Sent: 4/16/2015 10:11 AM
To: AzureADSamples/WebApp-MultiTenant-OpenIdConnect-DotNetmailto:[email protected]
Cc: Darek Gralamailto:[email protected]
Subject: Re: [WebApp-MultiTenant-OpenIdConnect-DotNet] Error provisioning for a single non-admin user (#8)
Hey Darek. Is the application XXX set as a multi-tenant application in the azure portal?
What was the domain of the user you attempted to sign in as? Was it YYY.onmicrosoft.com?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-93787336.
from active-directory-dotnet-webapp-multitenant-openidconnect.
Does tenant YYY allow regular users to consent to applications? There is a config switch to set this on the Configure tab of the tenant in the Azure portal.
If that switch is set correctly, please provide a correlationId and timestamp for the error and I can take a deeper look.
from active-directory-dotnet-webapp-multitenant-openidconnect.
Thanks, I checked the settings and they should be able to consent.
Additional technical information:
Correlation ID: 98b9b314-b558-430d-a0e1-790459bad062
Timestamp: 2015-04-16 06:10:49Z
AADSTS70001: Application with identifier d0a17f8c-4463-47c2-ae03-04601528c5a3 was not found in the directory fbtest.onmicrosoft.com
From: Danny Strockis [mailto:[email protected]]
Sent: Thursday, April 16, 2015 11:28 AM
To: AzureADSamples/WebApp-MultiTenant-OpenIdConnect-DotNet
Cc: Darek Grala
Subject: Re: [WebApp-MultiTenant-OpenIdConnect-DotNet] Error provisioning for a single non-admin user (#8)
Does tenant YYY allow regular users to consent to applications? There is a config switch to set this on the Configure tab of the tenant in the Azure portal.
If that switch is set correctly, please provide a correlationId and timestamp for the error and I can take a deeper look.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-93808710.
from active-directory-dotnet-webapp-multitenant-openidconnect.
Ping
from active-directory-dotnet-webapp-multitenant-openidconnect.
I have the same problem, does anyone have clue?
from active-directory-dotnet-webapp-multitenant-openidconnect.
Thanks that helped resolve the problem
from active-directory-dotnet-webapp-multitenant-openidconnect.
Thanks that worked for me.
from active-directory-dotnet-webapp-multitenant-openidconnect.
The sample has been heavily updated, including steps
- register and consent the apps in multiple tenants
- to deploy this in the sovereign clouds.
- to deploy this on Azure
Please give the updated the sample a try and let us know on this thread if you have more issues.
from active-directory-dotnet-webapp-multitenant-openidconnect.
Related Issues (20)
- Errors running sample in Azure data center when attempting a SignUp HOT 1
- Login with live Id into AD fails
- Grant Permissions page based on Query string HOT 3
- Issue with Multitenant HOT 2
- How to recreate this sample. HOT 2
- After setting application in Active directory, error during signup HOT 4
- Its only working for existing tenant, not for other tenant HOT 2
- Version using Oauth V2? HOT 3
- "Working..." cannot sign-in (local sql db connection) HOT 12
- ASPXAUTH cookie issue in Azure AD login HOT 1
- Update to work with latest version of Microsoft.Identity.Client.dll (v1.1.0-preview) HOT 1
- Does not work on Azure as all Actve-Director-Dotnet-WebApps on Github What am I missing?! HOT 2
- Multitenant application not working HOT 1
- Model compatibility cannot be checked because the database does not contain model metadata HOT 2
- Service to Service Multi Tenant App HOT 1
- Multi-tenant Not Working When Running in Azure Government Tenant HOT 7
- Update sample to use asp.net 4.0 HOT 1
- Validating issuer with multi-tenant should not just turn validate issuer off. HOT 4
- Database Table scripts HOT 2
- SQLException HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from active-directory-dotnet-webapp-multitenant-openidconnect.