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

DXCDT-588: Prevent user create or import to continue if connection is disabled #921

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

sergiught
Copy link
Contributor

🔧 Changes

When invoking auth0 users create|import we make sure the connection is enabled before continuing.

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@sergiught sergiught requested a review from a team as a code owner November 22, 2023 15:35
Comment on lines +679 to +680
management.Parameter("strategy[1]", management.ConnectionStrategyEmail),
management.Parameter("strategy[2]", management.ConnectionStrategySMS),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passwordless connections should have also been allowed.

@sergiught sergiught force-pushed the DXCDT-588-conn-enabled-user-create branch from 7e67225 to 6ad3978 Compare November 22, 2023 15:36
@codecov-commenter
Copy link

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (de12895) 72.46% compared to head (6ad3978) 72.35%.
Report is 2 commits behind head on main.

Files Patch % Lines
internal/cli/users.go 55.88% 12 Missing and 3 partials ⚠️
internal/cli/log_streams.go 0.00% 1 Missing ⚠️
internal/config/tenant.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #921      +/-   ##
==========================================
- Coverage   72.46%   72.35%   -0.11%     
==========================================
  Files          92       92              
  Lines       12462    12484      +22     
==========================================
+ Hits         9030     9033       +3     
- Misses       2906     2922      +16     
- Partials      526      529       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergiught sergiught merged commit 72caa5b into main Nov 27, 2023
8 checks passed
@sergiught sergiught deleted the DXCDT-588-conn-enabled-user-create branch November 27, 2023 09:27
m3talsmith pushed a commit to m3talsmith/auth0-cli that referenced this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants