Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Support for Auth0 Organizations #58

Open
user7of4 opened this issue Jun 3, 2022 · 0 comments
Open

[Feature] Support for Auth0 Organizations #58

user7of4 opened this issue Jun 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@user7of4
Copy link

user7of4 commented Jun 3, 2022

Feature Request

Auth0 also provides logins to Organizations. Add cypress env var 'auth0OrganizationId'. The login() command will login to an organization if 'auth0OrganizationId' env var is set to an Auth0 organization id.

Basic example

Assign organization id env var to organization param. This is 'getUserTokens' command in 'get-user-tokens.js'.

auth.client.loginWithDefaultDirectory(
  {
    organization: Cypress.env('auth0OrganizationId'), // <-- add organization id
    username,
    password,
    audience: Cypress.env('auth0Audience'),
    scope: Cypress.env('auth0Scope'),
    client_secret: Cypress.env('auth0ClientSecret'), // eslint-disable-line @typescript-eslint/camelcase
  },

Motivation

Login to Organizations can be tested.

@user7of4 user7of4 added the enhancement New feature or request label Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant