authentication - 使用 Auth0 对 cypress 进行身份验证
问题描述
我们想在整个 cypress 中使用 Auth0 Google 集成对用户进行身份验证。
我们为 cypress 创建了一个特定用户,以使用 Auth0 中的用户/密码连接进行身份验证。
问题是,我们不想在 Auth0 UI 上允许用户/密码,所以看起来我们无法通过这种方式进行身份验证。
我已经尝试了本指南:https ://docs.cypress.io/guides/testing-strategies/auth0-authentication#Custom-Command-for-Auth0-Authentication但我们收到此错误Grant type 'password' not allowed for the client.
有没有其他方法可以增强下面的指南并通过 Google 进行身份验证?
接受建议。先感谢您。
解决方案
推荐阅读
- javascript - 在 onchange 的下拉列表中获取所选值和其余值
- wordpress - 从 GDRating 获取 meta_value
- javascript - nodejs用数据重定向用户
- c# - 更改 VS Intellisense 语句完成行为顺序
- node.js - 如何从 channel.consume 中提取味精
- r - 在闪亮的应用程序中编辑数据表后,下载按钮消失
- java - 比较java中的二维数组
- python - 如何在 Python 中比较两个大文本文件的内容?
- julia - Julia:如何返回数组中唯一元素的数量
- office-js - 我可以在没有诸如“react”之类的框架的情况下在我的 office-js Excel Web 加载项中使用 ms-Spinner 吗?