There are two basic integration types:
Triggers, if a new user want's to connect. That said, there are two ways to complete users registration:
A successfully connected users gets logged in instantly.
members:
oauth:
enabled: true
activation_type: 'instant'
It's possible to complete this "unknown" users profile in later step which uses a dedicated form type (Form/Type/Sso/CompleteProfileFormType.php
).
By default, this completion is possible, as long the instant created SSO identity has no given password.
If you want to change that, use the status event.
After the request was successful, the user gets redirected to the registration form. There is no need to enter a password. Some fields may already be pre-filled (Read more about it here.
Attention: The
validation_group
ofRegistrationFormType
changes toSSO
while registration is incomplete_profile
mode.
members:
oauth:
enabled: true
activation_type: 'complete_profile'
Triggers, if an existing user want's to connect a profile with a given provider (e.g. Google). A list of all possible connectors are available in user's profile (There are some twig extensions).