首页 > 解决方案 > 使用 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 进行身份验证?

接受建议。先感谢您。

标签: authenticationtestingcypressauth0google-authentication

解决方案


推荐阅读