Skip to content

Instantly share code, notes, and snippets.

View kdgregory's full-sized avatar

Keith Gregory kdgregory

View GitHub Profile
@kdgregory
kdgregory / ForgotPasswordExample.java
Created January 29, 2017 18:37
Examples of unexpected behavior from Cognito IDP; see comments
import java.util.HashMap;
import java.util.Map;
import com.amazonaws.services.cognitoidp.AWSCognitoIdentityProviderClient;
import com.amazonaws.services.cognitoidp.model.*;
/**
* Demonstrates that it's possible to login with the original credentials
* after initiating the Forgot Password flow.