@itentialopensource/adapter-aws_cognito_identity_provider 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +108 -0
  5. package/BROKER.md +211 -0
  6. package/CALLS.md +813 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +13 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +646 -0
  13. package/README.md +343 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +16 -0
  16. package/TAB1.md +8 -0
  17. package/TAB2.md +392 -0
  18. package/TROUBLESHOOT.md +47 -0
  19. package/adapter.js +14144 -0
  20. package/adapterBase.js +1452 -0
  21. package/entities/.generic/action.json +214 -0
  22. package/entities/.generic/schema.json +28 -0
  23. package/entities/.system/action.json +50 -0
  24. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  25. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  26. package/entities/.system/schema.json +19 -0
  27. package/entities/.system/schemaTokenReq.json +53 -0
  28. package/entities/.system/schemaTokenResp.json +53 -0
  29. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAddCustomAttributes/action.json +24 -0
  30. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAddCustomAttributes/schema.json +19 -0
  31. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminAddUserToGroup/action.json +24 -0
  32. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminAddUserToGroup/schema.json +19 -0
  33. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminConfirmSignUp/action.json +24 -0
  34. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminConfirmSignUp/schema.json +19 -0
  35. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminCreateUser/action.json +24 -0
  36. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminCreateUser/schema.json +19 -0
  37. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminDeleteUser/action.json +24 -0
  38. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminDeleteUser/schema.json +19 -0
  39. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminDeleteUserAttributes/action.json +24 -0
  40. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminDeleteUserAttributes/schema.json +19 -0
  41. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminDisableProviderForUser/action.json +24 -0
  42. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminDisableProviderForUser/schema.json +19 -0
  43. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminDisableUser/action.json +24 -0
  44. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminDisableUser/schema.json +19 -0
  45. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminEnableUser/action.json +24 -0
  46. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminEnableUser/schema.json +19 -0
  47. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminForgetDevice/action.json +24 -0
  48. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminForgetDevice/schema.json +19 -0
  49. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminGetDevice/action.json +24 -0
  50. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminGetDevice/schema.json +19 -0
  51. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminGetUser/action.json +24 -0
  52. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminGetUser/schema.json +19 -0
  53. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminInitiateAuth/action.json +24 -0
  54. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminInitiateAuth/schema.json +19 -0
  55. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminLinkProviderForUser/action.json +24 -0
  56. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminLinkProviderForUser/schema.json +19 -0
  57. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminListDevices/action.json +24 -0
  58. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminListDevices/schema.json +19 -0
  59. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminListGroupsForUser/action.json +24 -0
  60. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminListGroupsForUser/schema.json +41 -0
  61. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminListUserAuthEvents/action.json +24 -0
  62. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminListUserAuthEvents/schema.json +41 -0
  63. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminRemoveUserFromGroup/action.json +24 -0
  64. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminRemoveUserFromGroup/schema.json +19 -0
  65. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminResetUserPassword/action.json +24 -0
  66. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminResetUserPassword/schema.json +19 -0
  67. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminRespondToAuthChallenge/action.json +24 -0
  68. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminRespondToAuthChallenge/schema.json +19 -0
  69. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminSetUserMFAPreference/action.json +24 -0
  70. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminSetUserMFAPreference/schema.json +19 -0
  71. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminSetUserPassword/action.json +24 -0
  72. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminSetUserPassword/schema.json +19 -0
  73. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminSetUserSettings/action.json +24 -0
  74. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminSetUserSettings/schema.json +19 -0
  75. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminUpdateAuthEventFeedback/action.json +24 -0
  76. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminUpdateAuthEventFeedback/schema.json +19 -0
  77. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminUpdateDeviceStatus/action.json +24 -0
  78. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminUpdateDeviceStatus/schema.json +19 -0
  79. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminUpdateUserAttributes/action.json +24 -0
  80. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminUpdateUserAttributes/schema.json +19 -0
  81. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminUserGlobalSignOut/action.json +24 -0
  82. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAdminUserGlobalSignOut/schema.json +19 -0
  83. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAssociateSoftwareToken/action.json +24 -0
  84. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceAssociateSoftwareToken/schema.json +19 -0
  85. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceChangePassword/action.json +24 -0
  86. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceChangePassword/schema.json +19 -0
  87. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceConfirmDevice/action.json +24 -0
  88. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceConfirmDevice/schema.json +19 -0
  89. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceConfirmForgotPassword/action.json +24 -0
  90. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceConfirmForgotPassword/schema.json +19 -0
  91. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceConfirmSignUp/action.json +24 -0
  92. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceConfirmSignUp/schema.json +19 -0
  93. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateGroup/action.json +24 -0
  94. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateGroup/schema.json +19 -0
  95. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateIdentityProvider/action.json +24 -0
  96. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateIdentityProvider/schema.json +19 -0
  97. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateResourceServer/action.json +24 -0
  98. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateResourceServer/schema.json +19 -0
  99. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateUserImportJob/action.json +24 -0
  100. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateUserImportJob/schema.json +19 -0
  101. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateUserPool/action.json +24 -0
  102. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateUserPool/schema.json +19 -0
  103. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateUserPoolClient/action.json +24 -0
  104. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateUserPoolClient/schema.json +19 -0
  105. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateUserPoolDomain/action.json +24 -0
  106. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceCreateUserPoolDomain/schema.json +19 -0
  107. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteGroup/action.json +24 -0
  108. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteGroup/schema.json +19 -0
  109. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteIdentityProvider/action.json +24 -0
  110. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteIdentityProvider/schema.json +19 -0
  111. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteResourceServer/action.json +24 -0
  112. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteResourceServer/schema.json +19 -0
  113. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteUser/action.json +24 -0
  114. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteUser/schema.json +19 -0
  115. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteUserAttributes/action.json +24 -0
  116. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteUserAttributes/schema.json +19 -0
  117. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteUserPool/action.json +24 -0
  118. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteUserPool/schema.json +19 -0
  119. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteUserPoolClient/action.json +24 -0
  120. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteUserPoolClient/schema.json +19 -0
  121. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteUserPoolDomain/action.json +24 -0
  122. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDeleteUserPoolDomain/schema.json +19 -0
  123. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeIdentityProvider/action.json +24 -0
  124. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeIdentityProvider/schema.json +19 -0
  125. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeResourceServer/action.json +24 -0
  126. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeResourceServer/schema.json +19 -0
  127. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeRiskConfiguration/action.json +24 -0
  128. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeRiskConfiguration/schema.json +19 -0
  129. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeUserImportJob/action.json +24 -0
  130. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeUserImportJob/schema.json +19 -0
  131. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeUserPool/action.json +24 -0
  132. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeUserPool/schema.json +19 -0
  133. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeUserPoolClient/action.json +24 -0
  134. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeUserPoolClient/schema.json +19 -0
  135. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeUserPoolDomain/action.json +24 -0
  136. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceDescribeUserPoolDomain/schema.json +19 -0
  137. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceForgetDevice/action.json +24 -0
  138. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceForgetDevice/schema.json +19 -0
  139. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceForgotPassword/action.json +24 -0
  140. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceForgotPassword/schema.json +19 -0
  141. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetCSVHeader/action.json +24 -0
  142. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetCSVHeader/schema.json +19 -0
  143. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetDevice/action.json +24 -0
  144. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetDevice/schema.json +19 -0
  145. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetGroup/action.json +24 -0
  146. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetGroup/schema.json +19 -0
  147. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetIdentityProviderByIdentifier/action.json +24 -0
  148. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetIdentityProviderByIdentifier/schema.json +19 -0
  149. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetSigningCertificate/action.json +24 -0
  150. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetSigningCertificate/schema.json +19 -0
  151. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetUICustomization/action.json +24 -0
  152. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetUICustomization/schema.json +19 -0
  153. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetUser/action.json +24 -0
  154. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetUser/schema.json +19 -0
  155. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetUserAttributeVerificationCode/action.json +24 -0
  156. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetUserAttributeVerificationCode/schema.json +19 -0
  157. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetUserPoolMfaConfig/action.json +24 -0
  158. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGetUserPoolMfaConfig/schema.json +19 -0
  159. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGlobalSignOut/action.json +24 -0
  160. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceGlobalSignOut/schema.json +19 -0
  161. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceInitiateAuth/action.json +24 -0
  162. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceInitiateAuth/schema.json +19 -0
  163. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListDevices/action.json +24 -0
  164. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListDevices/schema.json +19 -0
  165. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListGroups/action.json +24 -0
  166. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListGroups/schema.json +41 -0
  167. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListIdentityProviders/action.json +24 -0
  168. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListIdentityProviders/schema.json +41 -0
  169. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListResourceServers/action.json +24 -0
  170. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListResourceServers/schema.json +41 -0
  171. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListTagsForResource/action.json +24 -0
  172. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListTagsForResource/schema.json +19 -0
  173. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListUserImportJobs/action.json +24 -0
  174. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListUserImportJobs/schema.json +19 -0
  175. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListUserPoolClients/action.json +24 -0
  176. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListUserPoolClients/schema.json +41 -0
  177. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListUserPools/action.json +24 -0
  178. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListUserPools/schema.json +41 -0
  179. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListUsers/action.json +24 -0
  180. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListUsers/schema.json +41 -0
  181. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListUsersInGroup/action.json +24 -0
  182. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceListUsersInGroup/schema.json +41 -0
  183. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceResendConfirmationCode/action.json +24 -0
  184. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceResendConfirmationCode/schema.json +19 -0
  185. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceRespondToAuthChallenge/action.json +24 -0
  186. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceRespondToAuthChallenge/schema.json +19 -0
  187. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceRevokeToken/action.json +24 -0
  188. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceRevokeToken/schema.json +19 -0
  189. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceSetRiskConfiguration/action.json +24 -0
  190. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceSetRiskConfiguration/schema.json +19 -0
  191. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceSetUICustomization/action.json +24 -0
  192. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceSetUICustomization/schema.json +19 -0
  193. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceSetUserMFAPreference/action.json +24 -0
  194. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceSetUserMFAPreference/schema.json +19 -0
  195. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceSetUserPoolMfaConfig/action.json +24 -0
  196. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceSetUserPoolMfaConfig/schema.json +19 -0
  197. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceSetUserSettings/action.json +24 -0
  198. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceSetUserSettings/schema.json +19 -0
  199. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceSignUp/action.json +24 -0
  200. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceSignUp/schema.json +19 -0
  201. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceStartUserImportJob/action.json +24 -0
  202. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceStartUserImportJob/schema.json +19 -0
  203. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceStopUserImportJob/action.json +24 -0
  204. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceStopUserImportJob/schema.json +19 -0
  205. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceTagResource/action.json +24 -0
  206. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceTagResource/schema.json +19 -0
  207. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUntagResource/action.json +24 -0
  208. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUntagResource/schema.json +19 -0
  209. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateAuthEventFeedback/action.json +24 -0
  210. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateAuthEventFeedback/schema.json +19 -0
  211. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateDeviceStatus/action.json +24 -0
  212. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateDeviceStatus/schema.json +19 -0
  213. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateGroup/action.json +24 -0
  214. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateGroup/schema.json +19 -0
  215. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateIdentityProvider/action.json +24 -0
  216. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateIdentityProvider/schema.json +19 -0
  217. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateResourceServer/action.json +24 -0
  218. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateResourceServer/schema.json +19 -0
  219. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateUserAttributes/action.json +24 -0
  220. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateUserAttributes/schema.json +19 -0
  221. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateUserPool/action.json +24 -0
  222. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateUserPool/schema.json +19 -0
  223. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateUserPoolClient/action.json +24 -0
  224. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateUserPoolClient/schema.json +19 -0
  225. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateUserPoolDomain/action.json +24 -0
  226. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceUpdateUserPoolDomain/schema.json +19 -0
  227. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceVerifySoftwareToken/action.json +24 -0
  228. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceVerifySoftwareToken/schema.json +19 -0
  229. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceVerifyUserAttribute/action.json +24 -0
  230. package/entities/XAmzTargetAWSCognitoIdentityProviderServiceVerifyUserAttribute/schema.json +19 -0
  231. package/error.json +190 -0
  232. package/metadata.json +92 -0
  233. package/package.json +81 -0
  234. package/pronghorn.json +5618 -0
  235. package/propertiesDecorators.json +14 -0
  236. package/propertiesSchema.json +1659 -0
  237. package/refs?service=git-upload-pack +0 -0
  238. package/report/adapterInfo.json +10 -0
  239. package/report/auto-adapter-openapi.json +44 -0
  240. package/report/aws_cognito.json +25915 -0
  241. package/report/creationReport.json +2215 -0
  242. package/sampleProperties.json +270 -0
  243. package/test/integration/adapterTestBasicGet.js +83 -0
  244. package/test/integration/adapterTestConnectivity.js +118 -0
  245. package/test/integration/adapterTestIntegration.js +3106 -0
  246. package/test/unit/adapterBaseTestUnit.js +1024 -0
  247. package/test/unit/adapterTestUnit.js +4433 -0
  248. package/utils/adapterInfo.js +206 -0
  249. package/utils/addAuth.js +94 -0
  250. package/utils/artifactize.js +146 -0
  251. package/utils/basicGet.js +50 -0
  252. package/utils/checkMigrate.js +63 -0
  253. package/utils/entitiesToDB.js +179 -0
  254. package/utils/findPath.js +74 -0
  255. package/utils/methodDocumentor.js +273 -0
  256. package/utils/modify.js +152 -0
  257. package/utils/packModificationScript.js +35 -0
  258. package/utils/patches2bundledDeps.js +90 -0
  259. package/utils/pre-commit.sh +32 -0
  260. package/utils/removeHooks.js +20 -0
  261. package/utils/setup.js +33 -0
  262. package/utils/taskMover.js +309 -0
  263. package/utils/tbScript.js +239 -0
  264. package/utils/tbUtils.js +489 -0
  265. package/utils/testRunner.js +298 -0
  266. package/utils/troubleshootingAdapter.js +193 -0
package/.eslintignore ADDED
@@ -0,0 +1,5 @@
1
+ .nyc_output/*
2
+ backup/*
3
+ coverage/*
4
+ out/*
5
+ adapter_modifications/*
package/.eslintrc.js ADDED
@@ -0,0 +1,18 @@
1
+ module.exports = {
2
+ env: {
3
+ browser: true,
4
+ es6: true,
5
+ node: true
6
+ },
7
+ extends: 'airbnb-base',
8
+ plugins: [
9
+ 'json'
10
+ ],
11
+ parserOptions: {
12
+ sourceType: 'module'
13
+ },
14
+ rules: {
15
+ 'max-len': 'warn',
16
+ 'comma-dangle': ['error', 'never']
17
+ }
18
+ };
package/.jshintrc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "esversion": 6
3
+ }
package/AUTH.md ADDED
@@ -0,0 +1,108 @@
1
+ ## Authenticating AWS Cognito Identity Provider Adapter
2
+
3
+ This document will go through the steps for authenticating the AWS Cognito Identity Provider adapter with AWS Signature 4 Authentication. Properly configuring the properties for an adapter in IAP is critical for getting the adapter online. You can read more about adapter authentication <a href="https://docs.itential.com/opensource/docs/authentication" target="_blank">HERE</a>.
4
+
5
+ ### AWS Authentication
6
+ The AWS Cognito Identity Provider adapter requires AWS Authentication therefore the `auth_method` should be set to `aws_authentication`. The adapter utilizes AWS signature 4 authentication. There are three mechanisms for doing this.
7
+
8
+ The first way is using a "service" account and its AWS keys to authenticate as that account. In this case, you will get the aws_access_key, aws_secret_key, and aws_session_token from AWS and configure them into the adapter service instance as shown below.
9
+
10
+ The second way is using AWS STS. this still requires a "service" account and its AWS keys to authenticate as that account. In this case, you will get the aws_access_key, aws_secret_key, and aws_session_token from AWS and configure them into the adapter service instance as shown below. In addition, you will provide STS paramaters in the workflow tasks that tell the adapter the role you want used on the particular call.
11
+
12
+ The third authentication method is to use an IAM role. With this method, you do not need any authentication keys as the adapter will utilize an "internal" AWS call to get the things that it needs for authentication. Since the adapter needs to make the call to this "internal" AWS IP address, the IAP server needs to be where it has access to that address or you will not be able to use this method.
13
+
14
+ If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
15
+
16
+ ### AWS Signature 4 Service Account Authentication
17
+ The AWS Cognito Identity Provider adapter requires AWS Signature 4 Authentication. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
18
+
19
+ STEPS
20
+ 1. Ensure you have access to a AWS Cognito Identity Provider server and that it is running
21
+ 2. Follow the steps in the README.md to import the adapter into IAP if you have not already done so
22
+ 3. Use the properties below for the ```properties.authentication``` field
23
+ ```json
24
+ "authentication": {
25
+ "auth_method": "aws_authentication",
26
+ "aws_access_key": "aws_access_key",
27
+ "aws_secret_key": "aws_secret_key",
28
+ "aws_session_token": "aws_session_token"
29
+ }
30
+ ```
31
+ you can leave all of the other properties in the authentication section, they will not be used for AWS Cognito Identity Provider authentication.
32
+ 4. Restart the adapter. If your properties were set correctly, the adapter should go online.
33
+
34
+ ### AWS Security Token Service
35
+ The AWS Cognito Identity Provider adapter also supports AWS Security Token Service (STS) Authentication. For using this authentication, you need to use the calls in the Adapter that have the STSRole suffix on them and pass the STS information into the method. You will still need to provide the relevant `aws_secret_key` and `aws_access_key` as described above. Below is an example of the data required in the `sts` tasks:
36
+
37
+ ```json
38
+ {
39
+ "RoleArn": "arn:aws:iam::1234567:role/my_role",
40
+ "RoleSessionName": "mySession"
41
+ }
42
+ ```
43
+
44
+ The AWS STS Authentication goes to the AWS STS Service endpoint in order to validate that the primary "service" account the adapter has authenticated with has the permission to assume the role. This call is made to sts.amazonaws.com or a regional sts sevice (e.g. sts.us-east-1.amazonaws.com). By default traffic to these endpoints will go out through the Internet. In the case where you would prefer these route through your network, it is possible to change the STS config for the adapter.
45
+
46
+ The proxy field should point to the AWS loadbalancer or a proxy server that forwards to AWS STS. In Itential Cloud, this can be NAT'd to your network. In addition to this, you may need to set the endpoint in order to have the STS SSL certificate validated successfully. By default the adapter will use sts regional servers. If the loadbalancer and proxy are set up for that you should be fine. If however, they point to the global STS service (sts.amazonaws.com) You will need to set the global as the endpoint or the STS certificate will be rejected due to the hosts not matching.
47
+
48
+ Region can be important as it is the region in which the STS assume role request will be processed. Each AWS partition may have one primary region for STS. In our tests, we have found that for the standard partition the STS region should be set to us-east-t but this is configurable should your primary region be different or you are working in a different AWS partition.
49
+
50
+ ```json
51
+ "authentication": {
52
+ "aws_sts": {
53
+ "region": "us-east-1",
54
+ "endpoint": "<sts certificate endpoint>",
55
+ "proxy": "<proxy/loadbalancer ip>",
56
+ }
57
+ }
58
+ ```
59
+
60
+ ### AWS IAM Role
61
+ The AWS Cognito Identity Provider adapter also supports AWS IAM Role Authentication. For using this authentication, you need to use the calls in the Adapter that have the STSRole suffix on them and provide the role's ARN in the RoleName variable. In addition to passing the IAM Role in the task, it is possible to set an IAM Role in the Service Instance Configuration by using the `aws_iam_role` property in the authentication section and providing the role's ARN.
62
+
63
+ ```json
64
+ "authentication": {
65
+ "auth_method": "aws_authentication",
66
+ "aws_iam_role": "role_arn"
67
+ }
68
+ ```
69
+
70
+ ### AMAZON STEPS FOR IAM ROLE
71
+ Increase number of hops if running IAP inside of docker on Cognito Identity Provider instance
72
+ ```bash
73
+ aws sso login --profile aws-bota-1
74
+ <export aws keys for CLI access>
75
+
76
+ aws ec2 modify-instance-metadata-options --instance-id i-0e150236026b7c45d --http-put-response-hop-limit 3 --http-endpoint enabled --region us-east-1
77
+ ```
78
+
79
+ Create a new role and attach to it policies:
80
+ - go to your Cognito Identity Provider instance, select it
81
+ - Actions->Security->Modify IAM Role
82
+ - Click 'Create New IAM Role'
83
+ - Create a role:
84
+ ```text
85
+ Trusted entity type: AWS service
86
+ Use Case: cognito-idp
87
+ ```
88
+
89
+ Add desired policies to the role.
90
+
91
+ Save the role
92
+
93
+ Go back to your Cognito Identity Provider instance and Actions->Security->Modify IAM Role, associate newly created role with your Cognito Identity Provider instance
94
+
95
+ ### Troubleshooting
96
+ - Make sure you copied over the correct access key, secret key and session token.
97
+ - Turn on debug level logs for the adapter in IAP Admin Essentials.
98
+ - Turn on auth_logging for the adapter in IAP Admin Essentials (adapter properties).
99
+ - Investigate the logs - in particular:
100
+ - The FULL REQUEST log to make sure the proper headers are being sent with the request.
101
+ - The FULL BODY log to make sure the payload is accurate.
102
+ - The CALL RETURN log to see what the other system is telling us.
103
+ - Credentials should be ** masked ** by the adapter so make sure you verify the username and password - including that there are erroneous spaces at the front or end.
104
+ - Remember when you are done to turn auth_logging off as you do not want to log credentials.
105
+ - For IAM, you can run this on the IAP server to verify you are getting to the "internal" AWS Server
106
+ ```bash
107
+ TOKEN=`curl -v -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` && curl -v -H "X-aws-ec2-metadata-token: $TOKEN" -v http://169.254.169.254/latest/meta-data/iam/security-credentials/<rolename>
108
+ ```
package/BROKER.md ADDED
@@ -0,0 +1,211 @@
1
+ ## Integrating Aws_cognito_identity_provider Adapter with IAP Device Broker
2
+
3
+ This document will go through the steps for integrating the Aws_cognito_identity_provider adapter with IAP's Device Broker. IAP Device Broker integration allows for easier interation into several of IAPs applications (e.g. Configuration Manager). Properly configuring the properties for the adapter in IAP is critical for getting the device broker integration to work. Their is additional information in the configuration section of the adapter readme. This document will go through each of the calls that are utilized by the Device Broker.
4
+
5
+ ### getDevicesFiltered
6
+ getDevicesFiltered(options, callback) → This call returns all of the devices within Aws_cognito_identity_provider that match the provided filter.
7
+
8
+ #### input
9
+
10
+ options {object}: defines the options for the search. At current filter is the most important one. The filter can contain the device name (e.g. the options can be { filter: { name: [‘abc’, ‘def’] }}. The adapter currently filters by doing a contains on the name(s) provided in the array and not an exact match. So deviceabc will be returned when this filter is applied. In many adapters, other options (start, limit, sort and order) are not implemented.
11
+
12
+ #### output
13
+
14
+ An Object containing the total number of matching devices and a list containing an array of the details for each device. For example, { total: 2, list: [ { name: ‘abc’, ostype: ‘type’, port: 80, ipaddress: ‘10.10.10.10’ }, { name: ‘def’, ostype: ‘type2’, port: 443, ipaddress: ‘10.10.10.15’ }] }
15
+
16
+ The fields name and ostype are required by the broker and should be mapped through properties to data from the other system. In addition, ipaddress and port should also be mapped as it is utilized by some north bound IAP applications (e.g. Config Manager). There are other fields that can be set as well but consider these the minimal fields.
17
+
18
+ Below is an example of how you may set up the properties for this call.
19
+
20
+ ```json
21
+ "getDevicesFiltered": [
22
+ {
23
+ "path": "/{org}/get/devices",
24
+ "method": "GET",
25
+ "pagination": {
26
+ "offsetVar": "",
27
+ "limitVar": "",
28
+ "incrementBy": "limit",
29
+ "requestLocation": "query"
30
+ },
31
+ "query": {},
32
+ "body": {},
33
+ "headers": {},
34
+ "handleFailure": "ignore",
35
+ "responseDataKey": "",
36
+ "requestFields": {
37
+ "org": "555"
38
+ },
39
+ "responseFields": {
40
+ "name": "{hostField}",
41
+ "ostype": "{osField}",
42
+ "ostypePrefix": "system-",
43
+ "ipaddress": "{attributes.ipaddr}",
44
+ "port": "443"
45
+ }
46
+ },
47
+ {
48
+ "path": "/{org}/get/devices",
49
+ "method": "GET",
50
+ "query": {},
51
+ "body": {},
52
+ "headers": {},
53
+ "handleFailure": "ignore",
54
+ "responseDataKey": "",
55
+ "requestFields": {
56
+ "org": "777"
57
+ },
58
+ "responseFields": {
59
+ "name": "{hostField}",
60
+ "ostype": "{osField}",
61
+ "ostypePrefix": "system-",
62
+ "ipaddress": "{attributes.ipaddr}",
63
+ "port": "443",
64
+ "myorg": "{orgField}"
65
+ }
66
+ }
67
+ ]
68
+ ```
69
+
70
+ Notice with the path, there is a variable in it ({org}). This variable must be provided in the data available to the call. For getDevicesFiltered this means the requestFields as a static value. In other calls, it may also come from the result of the getDevicesFiltered call.
71
+
72
+ Notice with the responseFields, it wants the IAP data key as the key and where it is supposed to find the data in the response as the value. You can use nested fields in the response object using standard object notation. You can also add static data as shown in the port field. Finally, you can append data to the response from the requestInformation using its key (e.g. org). The ostypePrefix is a special field that allows you to add static data to the ostype to help define the system you are getting the device from.
73
+
74
+ Notice here that you can also have multiple calls that make up the results provided to the Device Broker. In this example we are making calls to two different organizations and returning the results from both.
75
+
76
+ ### isAlive
77
+ isAlive(deviceName, callback) → This call returns whether the device provided is operational.
78
+
79
+ input
80
+
81
+ deviceName {string}: the name of the device to get details of. The adapter will always call getDevicesFiltered first with this name in the filter in order to get any additional details it needs for this call (e.g. id).
82
+
83
+ output
84
+
85
+ A boolean value. This usually needs to be determined from a particular field in the data returned from the other system. This is where definind a status value and a status field is critical to properly configuring the call.
86
+
87
+ Below is an example of how you may set up the properties for this call.
88
+
89
+ ```json
90
+ "isAlive": [
91
+ {
92
+ "path": "/{org}/get/devices/{id}/status",
93
+ "method": "GET",
94
+ "query": {},
95
+ "body": {},
96
+ "headers": {},
97
+ "handleFailure": "ignore",
98
+ "statusValue": "online",
99
+ "responseDataKey": "",
100
+ "requestFields": {
101
+ "org": "{myorg}",
102
+ "id": "{name}"
103
+ },
104
+ "responseFields": {
105
+ "status": "{status}"
106
+ }
107
+ }
108
+ ]
109
+ ```
110
+
111
+ Notice with the requestFields, it will use the org and name that it got from the response of the getDevicesFiltered call to complete the path for the call.
112
+
113
+ Notice with the responseFields, it use the status field that came back and test to see if the value is online since that is what you defined as the statusValue. If it is it will return true otherwise it will return false.
114
+
115
+ You could have multiple calls here if needed but generally that will not be the case.
116
+
117
+ ### getConfig
118
+ getConfig(deviceName, format, callback) → This call returns the configuration for the device. This can be a simple call or a complex/multiple calls to get all of the “configuration” desirable.
119
+
120
+ input
121
+
122
+ deviceName {string}: the name of the device to get details of. The adapter will always call getDevicesFiltered first with this name in the filter in order to get any additional details it needs for this call (e.g. id).
123
+
124
+ format {string}: is an optional format you want provided back. Most adapters do not support formats by default and just return the “stringified” json object.
125
+
126
+ output
127
+
128
+ An object containing a response field which has the value of the stringified config (e.g. { response: ‘stringified configuration data’ }
129
+
130
+ Below is an example of how you may set up the properties for this call.
131
+
132
+ ```json
133
+ "getConfig": [
134
+ {
135
+ "path": "/{org}/get/devices/{id}/configPart1",
136
+ "method": "GET",
137
+ "query": {},
138
+ "body": {},
139
+ "headers": {},
140
+ "handleFailure": "ignore",
141
+ "responseDataKey": "",
142
+ "requestFields": {
143
+ "org": "{myorg}",
144
+ "id": "{name}"
145
+ }
146
+ "responseFields": {}
147
+ },
148
+ {
149
+ "path": "/{org}/get/devices/configPart2",
150
+ "method": "GET",
151
+ "query": {},
152
+ "body": {},
153
+ "headers": {},
154
+ "handleFailure": "ignore",
155
+ "responseDataKey": "",
156
+ "requestFields": {
157
+ "org": "{myorg}"
158
+ }
159
+ "responseFields": {}
160
+ }
161
+ ]
162
+ ```
163
+
164
+ The example above shows multiple calls. With the handleFailure property set to ignore, if one of the calls fails, the adapter will still send the response with that configuration missing. If you want it to fail set the handleFailure property to fail.
165
+
166
+ There is no limit on the number of calls you can make however understand that the adapter will make all of these calls prior to providing a response so there can be performance implications.
167
+
168
+ ### getDevice - may be deprecated
169
+ getDevice(deviceName, callback) → This call returns details of the device provided. In many systems the getDevicesFiltered only returns summary information and so we also want a more detailed call to get device details.
170
+
171
+ input
172
+
173
+ deviceName {string}: the name of the device to get details of. The adapter will always call getDevicesFiltered first with this name in the filter in order to get any additional details it needs for this call (e.g. id).
174
+
175
+ output
176
+
177
+ An Object containing the details of the device. The object should contain at least the same information that was provided in the getDevicesFiltered call (e.g. the fields name, ostype, port and ipaddress should be mapped in the adapter properties to data from the other system) and may contain many more details about the device.
178
+
179
+ Below is an example of how you may set up the properties for this call.
180
+
181
+ ```json
182
+ "getDevice": [
183
+ {
184
+ "path": "/{org}/get/device",
185
+ "method": "GET",
186
+ "query": {
187
+ "id": "{id}"
188
+ },
189
+ "body": {},
190
+ "headers": {},
191
+ "handleFailure": "ignore",
192
+ "responseDataKey": "",
193
+ "requestFields": {
194
+ "org": "{myorg}",
195
+ "id": "{name}"
196
+ },
197
+ "responseFields": {
198
+ "name": "{hostField}",
199
+ "ostype": "{osField}",
200
+ "ostypePrefix": "system-",
201
+ "ipaddress": "{attributes.ipaddr}",
202
+ "port": "443",
203
+ "myorg": "{orgField}"
204
+ }
205
+ }
206
+ ]
207
+ ```
208
+
209
+ In this example, we show a query parameter being used. Notice that the value is still provided via the requestFields and then like with the path, we use curly braces in the query to denote a variable. The body and header variables work in this same manner.
210
+
211
+ You could have multiple calls here if needed but generally that will not be the case.