auth0 / auth0-deploy-cli

The Auth0 Deploy CLI is a tool that helps you manage your Auth0 tenant configuration. It integrates into your development workflows as a standalone CLI or as a node module.
MIT License
248 stars 155 forks source link

Add support for Form, Flow and Flow Vault Connection #982

Closed kushalshit27 closed 1 week ago

kushalshit27 commented 1 week ago

πŸ”§ Changes

Add support for Form, Flow and Flow Vault Connection


forms:
  - name: New Kyc form
    body: ./forms/New Kyc form.json
flows:
  - name: Update KYC Name
    body: ./flows/Update KYC Name.json
flowVaultConnections:
  - name: 'Auth0 M2M Con #1'
    app_id: AUTH0
    ready: true
  - name: 'New Auth0 M2M Con #2'
    app_id: AUTH0
    setup: @@SETUP_CONFIG@@

βš™οΈ Configuration options:

"AUTH0_INCLUDED_ONLY": ["forms", "flows", "flowVaultConnections"],
"AUTH0_KEYWORD_REPLACE_MAPPINGS": {
    "SETUP_CONFIG": {
      "client_id": "<add M2M client id>",
      "client_secret": "<add M2M client_secret>",
      "domain": "<add M2M domain>",
      "type": "OAUTH_APP"
    }
}

πŸ“Œ Note:

πŸ“š References

Resolves: https://github.com/auth0/auth0-deploy-cli/issues/904

πŸ”¬ Testing

πŸ“ Checklist

codecov-commenter commented 1 week ago

Codecov Report

Attention: Patch coverage is 77.55102% with 99 lines in your changes missing coverage. Please review.

Project coverage is 79.91%. Comparing base (6d2f9bc) to head (d1032d2).

Files with missing lines Patch % Lines
src/tools/auth0/handlers/flowVaultConnections.ts 79.45% 6 Missing and 9 partials :warning:
src/context/yaml/handlers/flows.ts 72.72% 7 Missing and 5 partials :warning:
src/context/yaml/handlers/forms.ts 72.72% 7 Missing and 5 partials :warning:
src/context/directory/handlers/flows.ts 71.05% 6 Missing and 5 partials :warning:
src/context/directory/handlers/forms.ts 71.05% 6 Missing and 5 partials :warning:
src/tools/auth0/handlers/flows.ts 83.33% 4 Missing and 7 partials :warning:
...context/directory/handlers/flowVaultConnections.ts 76.92% 5 Missing and 4 partials :warning:
src/context/yaml/handlers/flowVaultConnections.ts 64.00% 5 Missing and 4 partials :warning:
src/tools/auth0/handlers/forms.ts 85.18% 3 Missing and 5 partials :warning:
src/utils.ts 90.90% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #982 +/- ## ========================================== - Coverage 80.18% 79.91% -0.27% ========================================== Files 113 122 +9 Lines 3871 4312 +441 Branches 768 837 +69 ========================================== + Hits 3104 3446 +342 - Misses 474 523 +49 - Partials 293 343 +50 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.