Skip to content

[Feature]: Add SSO auto-login support for company domain users #79

@jaimarothiya18

Description

@jaimarothiya18

Is your feature request related to a problem?

  • Currently, users need to be manually added to LogChef even when the organization uses SSO/OIDC authentication. For company domains (e.g., cars24.com), users should be automatically provisioned upon first login.
  • Users must be manually added to LogChef before they can access the system
  • Even with valid SSO credentials, users cannot login if they haven't been pre-provisioned

Describe the solution you'd like

  • When a user from a configured company domain (e.g., cars24.com) authenticates via OIDC/SSO for the first time, they should be automatically provisioned in LogChef
  • Auto-provisioned users should be assigned to a default team or role based on configuration
  • Admins should be able to configure which domains are allowed for auto-provisioning
  • Basically when user first time login with company email a user entry should created in DB and directly login to logchef and further team addition we can manage manually.
[auth.oidc]
auto_provision_enabled = true
allowed_domains = ["cars24.com", "example.com"]
default_team = "default"
default_role = "viewer"

Describe alternatives you've considered

No response

Additional context

No response

Importance

Nice to have

Contribution

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions