I'm using the AWS Android SDK.
I have an API Gateway resource that is set accessible with "Authorization COGNITO_USER_POOLS". I have an user pool and I am able to:
- Provide username and password to get the JWT token
- Use the JWT token in the "Authorization" header to access the API Gateway resource.
Now I want to use an external OpenID Connect provider to add users to the pool.
The identity provider is set in the "Federation" section of the User Pool.
I'm able to login to the external provider (Keycloak) to get a JWT token but I could not find a way to exchange this token with a Cognito User Pool JWT token to access the API.
I'm only able to use a CognitoCachingCredentialsProvider to get AWS AccessKey and SecretKey.
Am I missing something?