使用 Auth0 与 cypress 进行身份验证

时间:2021-05-20 08:46:53

标签: authentication testing cypress auth0 google-authentication

我们希望在整个 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 进行身份验证?

接受建议。 提前致谢。

0 个答案:

没有答案