Integrating AWS Face Liveness in React without Cognito Identity pool ID

0

Is Cognito Identity pool ID required to use Face Liveness in React front end. I am trying to integrate Face Liveness in my React project, backend has already provided a session ID and region, so I just plug it in <FaceLivenessDetector />. The issue is, when it runs, Face Liveness will throw me error from onError saying that "No Cognito Identity pool provided for unauthenticated access". But when building for android, we can skip auth all together. So is there anyways to skip auth for React as well?

Note: Only notable package used is @aws-amplify/ui-react-liveness from NPM

<FaceLivenessDetector
          sessionId={getProfileVerifyInitiateData?.data?.uvp?.session_id}
          region={getProfileVerifyInitiateData?.data?.uvp?.region}
          onAnalysisComplete={handleAnalysisComplete}
          onError={onFaceLivenessDetectorError}
/>

Face Liveness Doc

Bryan
질문됨 9달 전221회 조회
1개 답변
0

Hi Bryan,

Thanks for reaching out.

For using the FaceLivenessDetector component in a React based front-end, it is recommended to use Cognito Identity Pool as it handles the credentials sourcing with least privilege permissions and their expiry.

Managing credentials yourself on a web-app is challenging and can easily lead to security vulnerability if done incorrectly. If you have a secure way of managing credentials, you can use a custom credentials provider in the FaceLivenessDetectorCore component to get around using a Cognito Identity Pool.

Regards,

AWS Team

AWS
답변함 3달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인