Set up HTTPS access for ADO via OAuth
To configure the existing ADO Cloud OAuth integration to use HTTPS cloning instead of SSH, you must be on Continuous Delivery 5.2.0 or later. This is only available using the API, which uses the OAuth token already stored for auth. After upgrading to the version 5.2.0 or later, to switch to HTTPS cloning use curl
from a host that can resolve the CD console:
curl -v -X PATCH https://<CD4PE host>/cd4pe/api/v1/vcs/oauth/azure-devops -H "Authorization: <token from super user>" --cacert <console cert> -H "Content-Type: application/json" -d '{"httpClone": true}'
The CD host should be the address of your CD console.
See Manage personal access tokens for instruction on how to get the Authorization
token. This token must be from root or a superuser, so you must be logged in as a user with superuser privileges (this can be root or some other user) to create a token to use with this request.
Note that no app restart is required and there is no need to recreate control repos or modules. It is also worth noting that this setting is persistent, so once the HTTPS cloning value is set to true
, it remains until changed.