Community
BIM 360 Field Forum
Welcome to Autodesk’s BIM 360 Field Forums. Share your knowledge, ask questions, and explore popular BIM 360 Field topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

log into BIM360 Field using 2-legged OAuth token (Revit Addin - APS)

0 REPLIES 0
Reply
Message 1 of 1
dirk.neethling
177 Views, 0 Replies

log into BIM360 Field using 2-legged OAuth token (Revit Addin - APS)

Is it possible to log into BIM360 Field using the access token obtained from a 2-legged OAuth token ...login_by_forge_token?

access_token is obtained from Forge and works when accessing BIM360 Docs.
When trying the code below in Field, I am getting 'OAuth generic internal server error.'

 

headers = {
    "Content-Type": "application/x-www-form-urlencoded",
    "Accept": "application/json"
}

data = {
    "forge_token": access_token,
    "device_type": "",
    "device_identifier": ""
}

stub = "https://bim360field.eu.autodesk.com"
method = "/api/login_by_forge_token"
url = f"{stub}{method}"
response = requests.post(url, headers=headers, data=data)

 


 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report