{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-aspnet-cognito-identity-provider/issues/114","repository_url":"https://api.github.com/repos/aws/aws-aspnet-cognito-identity-provider","labels_url":"https://api.github.com/repos/aws/aws-aspnet-cognito-identity-provider/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-aspnet-cognito-identity-provider/issues/114/comments","events_url":"https://api.github.com/repos/aws/aws-aspnet-cognito-identity-provider/issues/114/events","html_url":"https://github.com/aws/aws-aspnet-cognito-identity-provider/issues/114","id":462921464,"node_id":"MDU6SXNzdWU0NjI5MjE0NjQ=","number":114,"title":"The security token included in the request is invalid","user":{"login":"keithbeller","id":1100779,"node_id":"MDQ6VXNlcjExMDA3Nzk=","avatar_url":"https://avatars2.githubusercontent.com/u/1100779?v=4","gravatar_id":"","url":"https://api.github.com/users/keithbeller","html_url":"https://github.com/keithbeller","followers_url":"https://api.github.com/users/keithbeller/followers","following_url":"https://api.github.com/users/keithbeller/following{/other_user}","gists_url":"https://api.github.com/users/keithbeller/gists{/gist_id}","starred_url":"https://api.github.com/users/keithbeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithbeller/subscriptions","organizations_url":"https://api.github.com/users/keithbeller/orgs","repos_url":"https://api.github.com/users/keithbeller/repos","events_url":"https://api.github.com/users/keithbeller/events{/privacy}","received_events_url":"https://api.github.com/users/keithbeller/received_events","type":"User","site_admin":false},"labels":[{"id":1325351343,"node_id":"MDU6TGFiZWwxMzI1MzUxMzQz","url":"https://api.github.com/repos/aws/aws-aspnet-cognito-identity-provider/labels/guidance","name":"guidance","color":"8a19e7","default":false},{"id":1325351340,"node_id":"MDU6TGFiZWwxMzI1MzUxMzQw","url":"https://api.github.com/repos/aws/aws-aspnet-cognito-identity-provider/labels/response-requested","name":"response-requested","color":"666666","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2019-07-01T21:33:57Z","updated_at":"2019-07-27T20:39:11Z","closed_at":null,"author_association":"NONE","body":"I've manually added a user the General Settings > Users and groups.\r\n\r\nI launch the application locally, navigate to the login page, enter creds from the account and get the following error message when submitting the login request:\r\n\r\n```\r\nAn unhandled exception occurred while processing the request.\r\n**HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown.**\r\nAmazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken) in HttpRequestMessageFactory.cs, line 539\r\n**AmazonCognitoIdentityProviderException: The security token included in the request is invalid.**\r\nAmazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleException(IExecutionContext executionContext, HttpErrorResponseException exception) in HttpErrorResponseExceptionHandler.cs, line 60\r\n**CognitoServiceException: Failed to find the Cognito User by Id**\r\nAmazon.AspNetCore.Identity.Cognito.CognitoUserStore<TUser>.FindByIdAsync(string userId, CancellationToken cancellationToken)\r\n```\r\n\r\n# App Configuration\r\nUsing the latest Sample application unmodified. \r\nappsettings.Development.json set as follows:\r\n  \"AWS\": {\r\n    \"Region\": \"us-east-1\", // value taken from General settings\r\n    \"UserPoolClientId\": \"6u.....\",  // value taken from General settings > App clients > App client id\r\n    \"UserPoolClientSecret\": \"i6....\", // value taken from General settings > App clients > App client secret\r\n    \"UserPoolId\": \"us-east-1_.....\" // value taken from General settings > Pool Id\r\n  }\r\n\r\n# User Pool Configuration:\r\n## Attributes\r\n- Username\r\n- Standard attributes required = email\r\n\r\n## Policies\r\n- Minimum length 8 and all requires checked\r\n- Only allow admins\r\n\r\n## MFA and verifications\r\n- Off\r\n\r\n## App clients\r\n- App client id & App client secret\r\n- no boxes checked\r\n\r\n## App integration > App client settings\r\n- Enabled Identity Providers = Cognito User Pool checked\r\n- Sign in and sign out URLs > Callback and Sign out URLs set to https://localhost:44339 for testing\r\n- OAuth 2.0 > Allowed OAuth Flows = Auth code grant\r\n- OAuth 2.0 > Allowed OAuth Scopes - email, openid, profile\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-aspnet-cognito-identity-provider/issues/comments/515712027","html_url":"https://github.com/aws/aws-aspnet-cognito-identity-provider/issues/114#issuecomment-515712027","issue_url":"https://api.github.com/repos/aws/aws-aspnet-cognito-identity-provider/issues/114","id":515712027,"node_id":"MDEyOklzc3VlQ29tbWVudDUxNTcxMjAyNw==","user":{"login":"scionwest","id":1865693,"node_id":"MDQ6VXNlcjE4NjU2OTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1865693?v=4","gravatar_id":"","url":"https://api.github.com/users/scionwest","html_url":"https://github.com/scionwest","followers_url":"https://api.github.com/users/scionwest/followers","following_url":"https://api.github.com/users/scionwest/following{/other_user}","gists_url":"https://api.github.com/users/scionwest/gists{/gist_id}","starred_url":"https://api.github.com/users/scionwest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scionwest/subscriptions","organizations_url":"https://api.github.com/users/scionwest/orgs","repos_url":"https://api.github.com/users/scionwest/repos","events_url":"https://api.github.com/users/scionwest/events{/privacy}","received_events_url":"https://api.github.com/users/scionwest/received_events","type":"User","site_admin":false},"created_at":"2019-07-27T20:39:11Z","updated_at":"2019-07-27T20:39:11Z","author_association":"NONE","body":"> .aws/config\r\n```\r\n[default]\r\noutput = json\r\nregion = us-east-1\r\n```\r\n\r\n> .aws/credentials\r\n```\r\n[default]\r\naws_access_key_id = ###\r\naws_secret_access_key = ###\r\n```\r\n\r\nI've fully uninstalled Visual Studio, all of the extensions, cleaned up any environment variables I had that were related to the AWS SDK, blown away the credentials/config files and re-generated them with `aws configure` and I get the same error. It doesn't matter what API I use at this point... Even CLI commands are failing for me to AWS. Somehow, my local credentials are screwed up and I can't figure out what the CLI/SDK is looking at - why they're ignoring my `.aws/credentials` file."}}
{"actor":{"display_login":"scionwest"}}