Domain Discovery in Login
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
@peintnermax can you please estimate the following issue?
I guess the last point should result in a user not found, not register cannot be performed.
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
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)