typescript
typescript copied to clipboard
Login: Login with IDP
As an enduser I want to be able to login with my registered idp provider.
Acceptance Criteria
- [ ] Ui is implemented in the package and used by the login ui
- [x] I am able to send the org id or primary domain to the login ui
- [x] If an org id or primary domain is sent, organization idps are shown
- [x] If no org id or primary domain is sent, instance idps are shown
- [x] User clicks on idp and is redirected to the provider
- [x] After login in the provider user gets back to login
- [x] When user is found it is sucessfully logedin
- [ ] When the user doesn't exist, depending on the configuration the user will be created automatically or a register screen is shown or the user can choose to link with an existing user
- [x] Page for the success of the login with idp
- [x] Page for the error of the login with idp
- [x] theming should be shown right
Additional Information
- LDAP does not have to be included in the first part.
- Flow:
- Click IDP (e.g Google) Button in UI
- Request to ZITADEL API
- Response with IDP Endpoint
- Redirect to IDP (Google)
- Authenticate in IDP (Google)
- Redirect to ZITADEL Backend
- Response to success or error page in login
- Handle what ever should be handled (e.g Enriche session with information)