Hi All,
Anybody has used AWS textract API?
Any idea how to authenticate to AWS? I'm not sure how to generate the signature.
If you have any sample, it will be greatly appreciated.
Hi Jomon,
You can integrate the AWS SDKs in OutSystems, if you integrate them in the client side you need to implement the Javascript SDK when available, or you use the C# SDK to create an extension. Several Forge components that implement AWS services do this.
The following Forge component also used the C# AWS SDK to implement the AWS Textract service:
https://www.outsystems.com/forge/component-overview/7896/aws-textract-connector
If the implemetation of the AWS Textract extension does not provide the features you want you can either:
You need NET framework version 4.8 installed and Microsoft Visual Studio (community edition will do) to be able to open the extension and inspect the code or make changes to it.
Regards,
Daniel
Thank you Daniel.. This component works great.. its recently added if i'm not wrong..
Daniël Kuhlmann wrote:
Forge seems to have a lot of available connectors that might have what you need.
Also Amazon's developer documentation are very helpful to get started: https://docs.aws.amazon.com/textract/latest/dg/authentication-and-access-control.html
Please be more specific on what issues are you facing so the community can be of better help, even if you are looking to have a more broader, technical, discussion.
Cristiana Umbelino wrote:
Thank you Christiana..
But there are no useful extensions in forge to connect to textract service..
Also amazon's documents are mostly for using their SDK, and there are no SDK for outsystems.
So I was trying to call using Consume REST API method. But I always get the error "IncompleteSignatureException". It could be because, my signature is not correct. But I cannot find a way to generate the signature in outsystems.
I do have my Accesskey ID, I do have my secret AccessKey.
And the end piont i need to connect is below.
https://textract.eu-west-1.amazonaws.com
From the AWS sample, it shows, the below example, on how to create signature. But i do not know how to do it in outsystems. I could not find any function like HMAC in outsystems.
kSecret = your secret access key
your secret access key
kDate = HMAC("AWS4" + kSecret, Date)
kRegion = HMAC(kDate, Region)
kService = HMAC(kRegion, Service)
kSigning = HMAC(kService, "aws4_request")
So im stuck..
I recommended those connectors because there's a possibility that this authentication was already implemented in them.
For the HMAC bit, you can use CryptoAPI and use it before you make a request.
Dear Jomon Kavungal,
Did you managed to integrate the Outsystems and AWS textract?
If you have done already, please share your learning points in that integration.
Regards
Arokianathan
Antonisamy Arokianathan wrote:
nope.. now trying to get a .net extension developed to call textract..
Just to update, we had the .net extension created using AWS sdk and used that extension to call the AWS service from outsystems. And its working fine.
We've used the componentandwe encountered this issue. Would you mind sharing what you did in order for it to work on your side?