Comments (5)
There's a fair chance, that this error happens, because the API server no longer responds to obsolete TLS versions, and your app is running with defaults that try an older version of TLS.
Try adding this somewhere around the startup code of your app:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
from learn.forge.viewmodels.
just to be clear, your question is about 3-legged, but this is the 2-legged tutorial code...right?
about the problem, it is probably happening due TLS migration, please check
https://forge.autodesk.com/blog/upcoming-forge-system-upgrade-tls-12-upgrade-date-moved-oct-31
https://forge.autodesk.com/blog/tls-12-net-developers
https://forge.autodesk.com/blog/tls-12-nodejs-developers
from learn.forge.viewmodels.
Here is the function that I am getting the error in. Is this 3-legged Authentication?
[HttpGet]
[Route("api/forge/oauth/url")]
public string GetOAuthURL()
{
// prepare the sign in URL
Scope[] scopes = { Scope.DataRead };
ThreeLeggedApi _threeLeggedApi = new ThreeLeggedApi();
string oauthUrl = _threeLeggedApi.Authorize(
Credentials.GetAppSetting("FORGE_CLIENT_ID"),
oAuthConstants.CODE,
Credentials.GetAppSetting("FORGE_CALLBACK_URL"),
new Scope[] { Scope.DataRead, Scope.ViewablesRead });
return oauthUrl;
}
from learn.forge.viewmodels.
I just downloaded the source for 3-legged (which is NOT this repo) and compiled with VS2017, works fine. Please make sure to Rebuild the project.
https://github.com/Autodesk-Forge/learn.forge.viewhubmodels/archive/net.zip
from learn.forge.viewmodels.
There's a fair chance, that this error happens, because the API server no longer responds to obsolete TLS versions, and your app is running with defaults that try an older version of TLS.
Try adding this somewhere around the startup code of your app:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
This worked for me. Thanks :)
from learn.forge.viewmodels.
Related Issues (20)
- Refresh cache token when machine hibernate HOT 1
- Repeatedly adding a change event handler during file upload HOT 2
- 3D model not loading on the viewer HOT 5
- .env.example file missing HOT 2
- Only 10 objects listed per bucket HOT 2
- Issues
- Issue loading the buckets HOT 2
- Error while creating a new bucket HOT 1
- validade bucket name HOT 1
- Buckets cannot be created HOT 3
- Error 404 on localhost:3000 HOT 1
- .NET sample only listing 10 objects per bucket?
- ASP.NET Core sample - HTTPS issues HOT 1
- git clone instruction in README HOT 2
- PHP - Failed to get env HOT 2
- 404 error
- Need instructions to connect to BIM360 Hub (integration tab) HOT 1
- Prevent creation of bucket with empty name
- need a GitHub button / logo on homepage 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 learn.forge.viewmodels.