There are two types of authentication supported:
To authenticate with HTTP basic authentication, select a credential of type username with password. DC/OS does not support this authentication type.
DC/OS Service Accounts use JSON Web Tokens (JWTs) to authenticate with DC/OS and retrieve an access token for use in subsequent requests. This plugin generates the JWT from the content of the selected credential and handles the creation and management of the necessary access token.
The content of the selected credential is a JSON object with the following fields (extra fields are ignored):
"jenkins-sa"
)
"https://leader.mesos/acs/api/v1/auth/login"
)
"RS256"
. Algorithm to use with private_key
.
"-----BEGIN RSA PRIVATE KEY-----\nMIIEpAI..."
)
{"uid":"jenkins","login_endpoint":"https://leader.mesos/acs/api/v1/auth/login","scheme":"RS256","private_key":"-----BEGIN RSA PRIVATE KEY-----\nMIIEpAI..."}