Comments (9)
Thanks for the heads-up @SgtSpamCan; things change quickly in the portal and we need to update our README.mds
@kalyankrishna1
If you have capacity, would you want to apply the new deployment steps to this sample?
from active-directory-dotnet-daemon.
@WindowsQuery this means that your Web API is not running at teh expected address
Check that this works and is indeed at that URL.
The Aggregate Exception is only due to async calls ran synchronously.
from active-directory-dotnet-daemon.
The link works. It is when the same value is provided to add key="todo:TodoListBaseAddress" that it fails. And, should it not open the browser with that URL instead of http://localhost:9184/?
I am not sure if this is a working sample.
from active-directory-dotnet-daemon.
I have also just run through the example code. As the OP reported, everything works when the service runs locally. When I deploy the service to Azure I'm also getting exception
"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
I successfully deployed my app to https://todoservice{omitted}.azurewebsites.net
My console app is configured correctly:
<add key="todo:TodoListBaseAddress" value="https://todoservice{omitted}.azurewebsites.net" />
from active-directory-dotnet-daemon.
Quick follow-up: I redeployed the service as HTTP (not HTTPS!), changed the app registration reply and home page urls to http as well, and at that point the client could call the service successfully. So, the web service itself is functioning. It just is not working once the website is secured.
One thing I noticed in the steps is that one of the azure service deploy steps stated:
From the Settings -> Reply URLs menu, update the Sign-On URL, and Reply URL fields to the address of your service
I assume we're talking about the App Registration entry in Azure AD? I found the setting called "Reply Url", but there is nothing specific in there about reply or sign-on url. It's just a list of urls. So in addition to changing the Reply Url, I also set the application's Home Page. If there is a setting called Sign-On, I could not find it via the instructions.
Was this crucial, and if so, where can it be located?
from active-directory-dotnet-daemon.
@jmprieur I'm honored to have you on the thread. Quick question: Was there something I missed regarding a Sign-On url? Or is it no longer relevant? Just trying to get my sample code working :-)
(heh, @SgtSpamCan is my other sign-on...)
from active-directory-dotnet-daemon.
Hi, i had the same issue, fixed it with before making the post:
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
Some reason TLS 1.0 is always used, and changing the min TLS version in the App Service settings doesnt seem to work.
from active-directory-dotnet-daemon.
Did you try updating the sample to work with .NET Framework 4.7.2 ? it ensure TLS 1.2 is used.
from active-directory-dotnet-daemon.
Did you try updating the sample to work with .NET Framework 4.7.2 ? it ensure TLS 1.2 is used.
No, i was just running it as it was. Like you mention, updating it to 4.7.2 ensures TLS is used and removes the need to explicitly declare it.
from active-directory-dotnet-daemon.
Related Issues (20)
- Failed to Configure Permissions forDaemon app HOT 2
- Issue with API hosted in Azure as App Service HOT 2
- Why ClaimScope Always Getting Null ? HOT 1
- NuGet Package restore failed for project HOT 1
- Group Claim HOT 1
- Issue in 'How to run this sample' instructions HOT 5
- Project doesn't build from CLI, builds from VS, but Intellisense doesn't believe it (Microsoft.IdentityModel namespace issue) HOT 5
- Where is the "require user assignments" mentioned in the setup step 8 [optional] HOT 1
- handshake failed due to an unexpected packet format HOT 3
- Broken links in the Instructions HOT 1
- Instructions use a delegated permission whereas they should use an app permission HOT 1
- Tenant Name vs id HOT 1
- missing check on claim roles HOT 3
- Cannot complete manual steps at end. Error: AADSTS650056 HOT 5
- Can you clarify a step in the README.md? HOT 4
- The underlying connection was closed: An unexpected error occurred on a send. HOT 7
- Is new sample link pointing to an incorrect sample? HOT 1
- Doesn't seem to authorize as of late HOT 2
- Can't get scopeClaim HOT 1
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-daemon.