To be more specific, I have a react app, which contains 3 input fields (maintained using useState() Hooks.
<input type="text" name="username" value={state.username} onInput={} />
<input type="password" name="password" value={state.password} onInput={} />
<input type="text" name="channel name" value={state.channel} onInput={} />
this field needs to take take "username and password " (ACCOUNT in the AWS user pool.)
here, "channel name" is used for another service in AWS after getting authenticated.
the task is =>
I need to use AWS cognito identity pool for authentication (using username and password from the input field) once authenticated, an access key and secret key are needed for other service configurations.
Flow:
step 1 :::
username + password ----> auth using identity pool --> get accesskey and secrete key
step 2 ::: (already have code . need to know how step 1 is done ? )
accesskey + secrete key + channel name ---> aws kinesis
I am new to AWS . please share some insight on how it should be done. really appreciate it if shared some code and related docs