We are using AEM 6.5 Server (Not on Cloud). For AEM Author Server Users Authentication, we use SAML. On AEM Author Server, we got a requirement to connect to external application API. We will host our API and External Server (not AEM Server and not in same Domain) will provide the JSON content. We will consume the JSON content from the API and put in our JCR repository and dynamically replicate/publish the content.
Could you please provide the approach and steps for Authentication of API? Do we need Authorization (using SAML SSO) to external Server as well and use JWT token on the top of it for Authentication? Could you please provide example code (if possible JAVA) as well?