Add copyable URLs in OAuth2 application details

Proposal

When registering an OAuth2 application in any service, the following variables are needed to configure the provider on the client side:

  • Client ID
  • Client secret
  • Authorization URL
  • Token URL
  • Refresh token URL (depending on the provider)
  • User info URL (for OpenID integration)

In Gitlab on https://gitlab.com/oauth/applications when clicking the name of an application, the client (aka application) ID and secret can be copied directly. However, the other variables need to be found scattered over multiple pages in the documentation.

I think it would be great if these variables can be copied directly from the same place as the client id and secret. So on $HOST/oauth/applications/:id, there will be 3 additional fields that can be copied:

Name Value (copyable input)
Authorization URL $HOST/oauth/authorize
Token URL $HOST/oauth/token
OpenID User Info URL $HOST/oauth/userinfo