jenkins-pipelinemulesoftcloudhub

How to deploy to Anypoint Runtime Manager using SSO authentication?


We use SSO authentication for our organisation Anypoint. We would like to automate deployments of Mule Maven Applications using Jenkins. There are lots of examples automating the deployment but all using username/password in the pom.xml and this doesn't work using SSO authentication. How can we automate the deploymens using SSO?


Solution

  • There are two alternatives:

    1. [recommended] Use a Connected App credentials as the authorization by setting the elements connectedAppClientId, connectedAppClientSecret and connectedAppGrantType in the <cloudHubDeployment> configuration. You have to setup the Connected App first in Access Management. This is supported by the Mule Maven Plugin from version 3.4.0 and newer.

    2. You can use an authorization token from your identity provider as the authorization. I understand that you have to get the token somehow. That's something that you will need to understand how to do it from your identity provider.