This is an example function for leveraging Azure AD as a custom identity provider for AWS Transfer for SFTP. This is a code example, however the full description of how to impliment the entire solution can be found at the following URL: https://www.intelligentdiscovery.io/blogs/aws-sftp-custom-identity-provider-v2