<@U04UQ68083H> I want to add a generic OIOC provid...
# ory-copilot
p
@chilly-king-10285 I want to add a generic OIOC provider to kratos. What are the callback URLs I should use?
c
A message from kapa.ai
To add a generic OpenID Connect (OIDC) provider to Ory Kratos, you need to define a redirect URL. The pattern for the redirect URL is as follows:
Copy code
http(s)://<domain-of-ory-kratos>:<public-port>/self-service/methods/oidc/callback/<social-signin-provider-id>
Replace
<domain-of-ory-kratos>
,
<public-port>
, and
<social-signin-provider-id>
with your specific values. This URL should be set as the redirect URI in your OIDC provider's configuration. For more detailed steps on adding a social sign-in provider, you can refer to the [Ory documentation](https://www.ory.sh/docs/self-hosted/kratos/configuration/oidc).
p
@chilly-king-10285 where do I find the social signin provider ID?
c
A message from kapa.ai
The social sign-in provider ID is a unique identifier that you set in your social sign-in configuration. It is used to identify the specific social sign-in provider you are integrating with Ory Kratos. When you are configuring a social sign-in provider, you define this ID. For example, in the case of adding a generic provider, you define the "Provider name" which serves as the ID. Similarly, when adding specific providers like Microsoft or Apple, the ID would typically be a predefined string like "microsoft" or "apple". In the context of importing social sign-in connections, the
provider
field in the configuration JSON is where you specify this ID. Here's an example:
Copy code
json {  "credentials": {   "oidc": {    "config": {     "providers": [      {       "provider": "github",       "subject": "12345"      },      {       "provider": "google",       "subject": "12345"      }     ]    }   }  } }
In this example, "github" and "google" are the provider IDs. For more details, you can refer to the [Ory documentation](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities#social-sign-in-connections).