How can I make logins through the Amazon Cognito REST APIs (for user pools) on platforms for which there is no official SDK? . Please note that I am requesting user pools, not identifier pools.
Summary
Amazon cognito provides 3 types of logins:
- federated logins (creates identifier pools ) - using social connections such as FB, Twitter, G + etc
- AWS managed logins (creates user pools ) - using a managed Amazon account, signin, forgot password, reset password service
- the developer provided logins (my custom authentication service, managed by me)
I use the second (with user pools)
Amazon cognito has several SDKs for Android, iOS, javascript, Xamarin, etc. Cognito also provides a REST API for building on platforms other than those supported by the official SDKs. I am building an application for another platform , and therefore the REST API is my only way, since there is no official SDK for my platform.
The Cognito REST API provides various endpoints for “logging in,” “forgotten password,” “verification confirmation,” etc., but, surprisingly, the REST API does not have an endpoint for simple login / logout .
From Cognito CLI API Documents I have all the CLI OFFICIAL APIs required for "user registration", "registration confirmation", "change passwords", "check phone numbers", "forget passwords", etc. Surprisingly, CLI APIs are not mentioned for LOGINs. I was hoping there should be some CLI API such as $ aws cognito-idp log-in "just like for $ aws cognito-idp sign-up " or for " $ aws cognito-idp forgot-password " etc.
Also from this initial tutorial , it talks about "* what should be done with the tokens obtained AFTER successful user authentication *". However, he does not talk about HOW for successful authentication to occur primarily with the Cognito User Pool APIs. Examples are available only for Android, iOS, javascript SDK. For platforms that do not have an SDK, there are no authentication examples.
Therefore, How do I make logins through the Amazon Cognito REST API (for user pools) on platforms for which there is no official SDK?