Friday, 14 April 2017

Forge AuthTokenServer

1、I Build Nodejs environment in windows OS,then download AuthTokenServer,it's OK; 2、Successful return access_token ,sample:{"access_token":"eyJhbGciOiJIUzI1NiIsImtpZCI6Imp3dF9zeW1tZXRyaWNfa2V5In0.eyJjbGllbnRfaWQiOiJwYm9PTDVNanp2YkFkS0tLbzVqc2RZRjhnYWFJV1l2ZiIsImV4cCI6MTQ5MjI0NDEyMiwic2NvcGUiOltdLCJhdWQiOiJodHRwczovL2F1dG9kZXNrLmNvbS9hdWQvand0ZXhwMTQ0MCIsImp0aSI6InNobUlaVHRYdGs0Vk52YVppYkdzVFB4S2ptRmlGdFFmWFEzMzdpUG9wZTlUZjY5dEpwWHdzNDBiTVcwREVpMjAifQ.4bMY3nOhosfUJATmaDSpp1SCISJzS4xH4Ls1oIAfo2Q","token_type":"Bearer","expires_in":86399}; 3、The Token copy to http://developer-autodesk.github.io/forge-quickstart-guide/, Click on View it ,then appear 401 error; 4、But I by curl command,sample “curl --data "client_id=XXX&client_secret=XXX&grant_type=client_credentials&scope=data:read data:write bucket:create" https://developer.api.autodesk.com/authentication/v1/authenticate --header "Content-Type: application/x-www-form-urlencoded" -k",acquired Token can Through authorization,3D modle can see



via 陈曦中

No comments:

Post a Comment