skip to Main Content

API Can curl & “–aws-sigv4” be used to call AWS IAM get user API on Amazon Web Services?

I am trying to get right request to get a user, but cannot: AWS CLI that works: aws iam get-user --user-name "${user_name}" Now, plain curl request api_addr=https://iam.amazonaws.com && curl --aws-sigv4 "aws:amz:${region}:iam" --user "${aws_key}":"${aws_secret}" "${api_addr}/?Action=GetUser&UserName=${user_name}&Version=2010-05-08" Getting a response: <ErrorResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/"> <Error>…

VIEW QUESTION

Can AWS Amplify UI React get AWS Cognito tokens?

Im currently working in a Next.js frontend and NestJS backend application and im setting the login component with the @aws-amplify/ui-react: like in the documentation https://docs.amplify.aws/lib/auth/getting-started/q/platform/js/#option-1-use-pre-built-ui-components import { Amplify } from 'aws-amplify'; import { withAuthenticator } from '@aws-amplify/ui-react'; import '@aws-amplify/ui-react/styles.css'; import…

VIEW QUESTION
Back To Top
Search