Hi Ory , is it possible to create a oauth client w...
# ory-network
m
Hi Ory , is it possible to create a oauth client with custom client id, and client secret or client id and secret will be provided by ory only. @fast-lunch-54279
func (p *poc) CreateOauthClient(clientname _string_) (*ory.OAuth2Client, _error_) {
oauthclient := ory.OAuth2Client{ ClientName: p.stringToPtr(clientname), GrantTypes: []`_string_{"client_credentials"},` ResponseTypes: []`_string_{"code", "id_token", "token"},` Scope: p.stringToPtr("openid email offline"), } resp, _, err := p.Oac.OAuth2Api.CreateOAuth2Client(p.Opt).OAuth2Client(oauthclient).Execute() if err != nil { return nil, err } return resp, nil }
in the above code am creating a client by providing a client name, instead is it possible to create a oauth client by providing my own custom id, secret also
p
Hi @most-optician-65806 It is not possible to set your own client_id, however, you can set your own client_secret. https://www.ory.sh/docs/reference/api#tag/oAuth2/operation/createOAuth2Client
f
as part of a migration support package, we have the ability to import existing client ids on our side - this is an option if you have a larger ecosystem of 3P clients where changing IDs is too disruptive