Gitlab OAuth Integration On self-hosted servers

Greetings, could you please advice a solution for case, listed below:

For OAuth integration in gitlab.com, I register my application in settings and then any OAuth authorization attempt is working properly. But what about self-hosted instances? Can I register application through the api without credentials, or there is another workflow, which can be applied?