I am working on integrating two applications in OutSystems ( ODC ):
For security purposes, I want to pass an API key and username in the API requests. I’ve already gone through the official documentation on adding custom authentication for exposed REST APIs. However, I’d appreciate any additional insights or examples.
Could anyone share ideas or, if possible, an OML file that demonstrates how to implement this securely?
You just need to pass the header while consuming the APi
Like of you pass headers with value:-
ApiKey - 123456789
In the api logic you need to call get request header with the same text "AkiKey"
So it will return you the value of the apikey
This Post will help you just need to add header while consuming
Hello @Dinesh M
to check user-specific or API key-specific auth you can check it on the "OnAuthentication" action of API.
That belongs to OutSystems' best practice also
You just need to get the header and valiudate the value like below image
Thanks for sharing @Gourav Shrivastava . May I know the structure while consuming.