OAuth - How to use Grant Type "Authorization Code" for token generation
Hi everyone, I recently read this excellent blog post about token authentication using the REST API for Innovator, and in it Christopher Gillis says that ' urrently, I believe "password" is the only authentication type allows [sic]. Aras as a whole is moving towards more types of authentication in 12.0, so this is likely to change in the upcoming releases.' With 12.0 released, I see that OAuthServer\OAuth.config now defines two allowedGrantTypes for the clientRegistry with ID "IOMApp": 'password' - the one that I have been using in my code when generating OAuth tokens for Innovator so far - but also 'authorization_code'. Hence, I was wondering if anyone knows a practical way yet to generate the access token with that grant type, instead of using "password"? Thanks a lot in advance for any info on this subject. Cheers, C8.1KViews2likes2CommentsUpload file Rest API using Logic App
I am currently developing a sample project in Azure Logic Apps using the Aras Restful APIs. However while trying to Execute the vault.UploadFile API I am facing the 500 error message: The Rest API Call Details are as follows : { "uri": ".../vault.UploadFile?fileId=EB166A9FF4EE47C8A0DA55252CA140CA", "method": "POST", "headers": { "Authorization": "*sanitized*", "Content-Disposition": "attachment;filename*=utf-8''Hello.txt", "Content-Length": "5", "Content-Range": "bytes 0-4/5", "Content-Type": "application/octet-stream", "transactionid": "0c2c787fce70226029d752c0ba372607" }, "body": "Hello" } For now I am trying to upload a simple text file as seen above. I have verified the url as well as run the same in Postman , ARC and fiddler - and I am able to get it working in all the cases except for via Logic Apps . Please let me know if anyone knows what I am missing here . Thanks9.2KViews1like4CommentsARAS RESTful API: How do I get a list of all generations for a part?
I'm attempting to get a full part history (14 generations worth) of a part. I know the config_id is a value shared between all 14 parts; however, I can't seem to construct the REST call to return all 14 records using the config_id. I get the config_id with ... GET {base url}/Part('<id>')/config_id/id/$value Then I tried using the config_id in a filter like this ... GET {base url}/Part?$config_id eq '<config_id>' That just returned one part record, the latest one. Using the config_id is what I would have done using an AML query, but is there another way with the REST API? I'm running Aras Innovator 11.0 SP12Solved12KViews1like7Comments