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

Add support for self-service profiles #989

Merged
merged 10 commits into from
Nov 28, 2024
Merged

Conversation

kushalshit27
Copy link
Contributor

@kushalshit27 kushalshit27 commented Nov 27, 2024

🔧 Changes

Add support for self-service profiles

selfServiceProfiles:
  - name: self-service profile 1
    allowed_strategies:
      - google-apps
      - keycloak-samlp
      - okta
    branding:
      colors:
        primary: '#19aecc'
    customText:
      en:
        get-started:
          introduction: >-
            Welcome! With <p>only a few steps</p> you'll be able to setup.
    description:  self-Service  profile 1
    user_attributes:
      - name: email
        description: Email of the User
        is_optional: false
      - name: name
        description: Name of the User
        is_optional: true
  - name: self-Service  profile 2
    allowed_strategies: @@ALLOWED_STRATEGIES@@
    description: test self-Service  profile 2
    user_attributes: []

⚙️ Configuration options:

  "AUTH0_INCLUDED_ONLY": ["selfServiceProfiles"],
  "AUTH0_KEYWORD_REPLACE_MAPPINGS": {
    "ALLOWED_STRATEGIES": [
      "adfs",
      "google-apps",
      "keycloak-samlp",
      "oidc",
      "okta",
      "samlp",
      "waad"
    ]
  }

📌 Note:

  • SSO access ticket for the Self Service SSO Flow using a self-service profile is not supported via auth0-deploy-cli

📚 References

🔬 Testing

  • unit test added for self-service profiles
  • E2E test updated

📝 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)

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 82.50000% with 21 lines in your changes missing coverage. Please review.

Project coverage is 80.30%. Comparing base (5ff0727) to head (e25b584).

Files with missing lines Patch % Lines
src/tools/auth0/handlers/selfServiceProfiles.ts 85.71% 5 Missing and 6 partials ⚠️
.../context/directory/handlers/selfServiceProfiles.ts 80.76% 2 Missing and 3 partials ⚠️
src/context/yaml/handlers/selfServiceProfiles.ts 64.28% 2 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #989      +/-   ##
==========================================
+ Coverage   80.24%   80.30%   +0.06%     
==========================================
  Files         122      125       +3     
  Lines        4312     4432     +120     
  Branches      838      862      +24     
==========================================
+ Hits         3460     3559      +99     
- Misses        507      516       +9     
- Partials      345      357      +12     

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

@kushalshit27 kushalshit27 marked this pull request as ready for review November 27, 2024 12:48
@kushalshit27 kushalshit27 requested a review from a team as a code owner November 27, 2024 12:48
@kushalshit27 kushalshit27 merged commit a13e794 into master Nov 28, 2024
8 checks passed
@kushalshit27 kushalshit27 deleted the DXCDT-721-self-service-sso branch November 28, 2024 04:48
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