refer to the following article to implement the server on your own:
in authorization code mode, how to obtain the following client id:
I think the client id must be applied to the service provider in advance and provided by the service provider after being allowed to access by the service provider. Then the third-party application can use it. How can you get this client-side Id?