title: DynamoDB The security token included in the request is invalid UnrecognizedClientException
body: <p>I have ~/.aws/credentials and config files  and my code is below</p>
  
  <pre><code>clientConfiguration.setProxyHost("MYPROXY");
              clientConfiguration.setProxyPort(port);
              clientConfiguration.setProxyUsername("username");
              clientConfiguration.setProxyPassword("pw");
              clientConfiguration.setPreemptiveBasicProxyAuth(false);
  
  
              AmazonDynamoDBClient client = new AmazonDynamoDBClient(new ProfileCredentialsProvider("MY_PROFILE"),clientConfiguration);
  
           //client.withRegion(Regions.US_EAST_1);
           DynamoDBMapper mapper = new DynamoDBMapper(client);
  
           // Get a book - Id=101
           GetBook(mapper, 101);
  </code></pre>
  
  <p>I am getting below exception everytime.I can see session token in my credential file in ~/.aws/credentials</p>
  
  <pre><code>Error running the DynamoDBMapperQueryScanExample: com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException: The security token included in the request is invalid. (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: UnrecognizedClientException; Request ID: S0NTUAHKE57VC68FM3CVBOFAKFVV4KQNSO5AEMVJF66Q9ASUAAJG)
      com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException: The security token included in the request is invalid. (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: UnrecognizedClientException; Request ID: S0NTUAHKE57VC68FM3CVBOFAKFVV4KQNSO5AEMVJF66Q9ASUAAJG)
  </code></pre>
  
  <p>AWS SDK 1.11.24 java 
  Credentials file</p>
  
  <pre><code>[TES1_AWS_STSdigital_Dev_Developer]
  aws_access_key_id = XXXXX
  aws_secret_access_key = AAAAA
  aws_security_token = BBBBBBBB
  token_expiration = 2016-08-08T16:34:48Z
  
  [TEST2_AWS_TEST_Dev_ReadOnly]
  aws_access_key_id = MMMMMM
  aws_secret_access_key = NNNNNN
  aws_security_token = OOOOOOO
  token_expiration = 2016-08-08T16:34:48Z
  
  [TEST3_AWS_STSdigital_Prod_ProdSupport]
  aws_access_key_id = KKKKKKK
  aws_secret_access_key = LLLLLLLLL
  aws_security_token =FFFFFFFF
  token_expiration = 2016-08-08T16:34:48Z
  
  [TEST4_AWS_STSdigital_Prod_Monitoring]
  aws_access_key_id = WWWWWW
  aws_secret_access_key = SSSSSSSS
  aws_security_token = VVVVVVVVV
  token_expiration = 2016-08-08T16:34:48Z
  </code></pre>
  
  <p>config file in ~/.aws/config</p>
  
  <pre><code>[DEFAULT]
  scope = urn:amazon:webservices
  
  [saml_provider]
  url = https://myprivatesssaccess
  default_region = us-east-1
  
  [profile TEST1_AWS_STSdigital_Dev_Developer]
  saml_role = arn:aws:iam::44444444:role/TEST1_AWS_STSdigital_Dev_Developer
  region = us-east-1
  
  [profile TEST2_AWS_TEST_Dev_ReadOnly]
  saml_role = arn:aws:iam::3333333:role/TEST2_AWS_TEST_Dev_ReadOnly
  region = us-east-1
  
  [profile TEST3_STSdigital_Prod_ProdSupport]
  saml_role = arn:aws:iam::222222:role/TEST3_AWS_STSdigital_Prod_ProdSupport
  region = us-east-1
  
  [profile TEST4_AWS_STSdigital_Prod_Monitoring]
  saml_role = arn:aws:iam::1111111:role/TEST4_AWS_STSdigital_Prod_Monitoring
  region = us-east-1
  </code></pre>