typescript icon indicating copy to clipboard operation
typescript copied to clipboard

Domain Discovery in Login

Open hifabienne opened this issue 1 year ago • 4 comments

As a user I want to be able to login to my user account with domain discovery, so the login checks to which organization my user belongs to and routes my according to the domain.

Acceptance Criteria

For all criteria we assume the company has a domain company-a.com registered

  • [x] Given a user [email protected] exists in the organization, the user will be redirected to the login of the organization, respectively to the second step after identitfying the user
  • [x] Given the user [email protected] doesn't exist, the user will be redirected to the registration page of the organization, if registration is allowed
    • [x] if only local user registration is allowed user will be shown the registration form
    • [x] if only one idp is allowed, user will be redirected to idp directly
    • [x] if more options are available, the registration option will be shown
    • [x] the user will be registered in the selected organization
  • [x] Given the user [email protected] doesn't exist, and registration is not allowed, the user will get an error message that the user could not be found

edit:

  • [ ] given a user is not found, the organization should be detected based on the suffix of the loginname and the user should be redirected to the register page

hifabienne avatar Jul 17 '24 13:07 hifabienne

@peintnermax can you please estimate the following issue?

hifabienne avatar Jul 17 '24 13:07 hifabienne

I guess the last point should result in a user not found, not register cannot be performed.

peintnermax avatar Jul 24 '24 12:07 peintnermax

I guess the last point should result in a user not found, not register cannot be performed.

You are right, updated in the issue description

hifabienne avatar Jul 24 '24 12:07 hifabienne

Implementing the discovery for the register, we need to have a method searchOrgs on the org service which allows to get organizations based on a domain (loginnamesuffix)

peintnermax avatar Aug 06 '24 12:08 peintnermax