Check out the Gitlab docs on how to create the oauth app.