graphql - 空手道如何使用 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
我完全迷路了,有人可以帮助我如何改进这段代码。
解决方案
推荐阅读
- java - 我如何知道实例何时创建?
- python - 使用 XlsxWriter 将文本框或文本框中的文本定向为垂直?
- java - 如何制作使用任何窗格的基本 GUI 功能
- python - Python 简化梯队形式
- cookies - 关于 xss 和 csrf 的文章似乎是错误的
- reactjs - 更新状态时更新输入值reactjs
- sql - 分组结果 - SQL
- java - 如何修复 RapidClipse4 org.hibernate.MappingException:无法从文件配置覆盖:hibernate.reveng.xml
- python - 在数据框更改时更新字典键/值对
- javascript - Extjs 表单和文本区域无法处理带尖括号('<>')的输入。奇怪的行为,用户界面就死了