flaky-kilobyte-10585
05/12/2025, 1:33 PMbrief-egg-61061
05/12/2025, 1:33 PMbrief-egg-61061
05/12/2025, 1:34 PMflaky-kilobyte-10585
05/12/2025, 1:39 PMbrief-egg-61061
05/12/2025, 1:39 PMbrief-egg-61061
05/12/2025, 1:39 PMyaml selfservice: methods: password: enabled: true oidc: enabled: true
You must also configure your OIDC providers under the oidc
method. For example, for Google: yaml selfservice: methods: oidc: config: providers: - id: google provider: google client_id: "YOUR_CLIENT_ID" client_secret: "YOUR_CLIENT_SECRET" mapper_url: "base64://{YOUR_BASE64_ENCODED_JSONNET_HERE}" scope: - email - profile enabled: true
With this setup, Ory will automatically prompt users to authenticate with their password if they attempt to log in with a social provider using an email that already exists in your system, and then link the accounts upon successful authentication. There is no additional field required to enable this behavior—it is the default when both methods are active and the provider is configured[User account linking](https://www.ory.sh/docs/kratos/social-signin/link-multiple-provider-account/). If you want to allow users to manually link or unlink providers, ensure the oidc
method is enabled for the settings flow as well: yaml selfservice: methods: oidc: enabled: true flows: settings: # ... other settings
[Settings and profile updates](https://www.ory.sh/docs/kratos/self-service/flows/user-settings/) Summary: - Enable both password
and oidc
methods in your configuration. - Properly configure your OIDC providers. - No extra field is required to enable automatic linking; it is handled by Ory when both methods are enabled.