Hi, Is there a way to add IDP (oidcs) using admin...
# talk-kratos
s
Hi, Is there a way to add IDP (oidcs) using admin API? I've tried this http://auth.abc.test/admin/idp with POST request it doesn't work and returns 403
m
What API are you trying to call? When selfhosting Ory Kratos you would edit your configuration file (kratos.yml) directly. You can also build something to update the config through an API, that is only part of Ory Network.
s
I actually want to add multiple OIDC providers in self service using an API something like this
Copy code
selfservice:
      ....
      
      methods:
        oidc:
          enabled: true
          config:
            providers:
              - id: provider-name
                provider: generic
                client_id: .....
                client_secret: ....
                ....
Or this API is only available in Ory Network?
m
The ā€œUpdate an Ory Network Project Configurationā€ API is only available in Ory Network. When you self-host Ory Kratos, you can just edit the config file directly (depending on how exactly you host it)