We have written a microservice in Amazon Web Service(AWS) and linked it to an API Gateway.
This microservice is going to be used within our organisation and we want to secure it in such a way that only the users within our organisation can access this microservice.
So, when a user triggers a request to this service, he/she should get a login screen. If and only if the user provides valid credentials, he/she should be able to access the service.
By valid credentials, we mean, username/password configured for users they use to access our existing applications.
Till now, we are thinking the solution to be in this direction:
- Secure API Gatweway with Authorizer, specifically, Cognito Authorizer.
- For the Cognito User pool used in above Authorizer, attach Identity Provider under Federation section.
- Use SAML for this Identity Provider.
Please let us know how to proceed further?
or
Is there a better solution?