首页 > 解决方案 > 空手道如何使用 awscognito 用户池进行身份验证?

问题描述

我正在学习空手道,并希望像这样验证 cognito 用户池,如果在浏览器中发布,我在此处使用的 url 将带我进入登录页面。

 Scenario:   user Auth
        Given url   'https://mynewdomasdinhai.auth.us-east-1.amazoncognito.com/login?client_id=7s5jhgjhv4n&response_type=code&scope=email+openid&redirect_uri=http://localhost:8000/dashboard'     
        And header Content-Type = 'application/x-www-form-urlencoded; charset=utf-8'
        And form field grant_type = 'password'
        And form field password = 'xuxxx'
        And form field username = 'alisd'
        When method post
        Then status 200
        * print response

我完全迷路了,有人可以帮助我如何改进这段代码。

标签: graphqlamazon-cognitokarateaws-appsync

解决方案


推荐阅读