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?
Asked
Active
Viewed 792 times
1 Answers
0
There are two alternatives:
[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.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.

aled
- 21,330
- 3
- 27
- 34
-
Can you pls elaborate on the steps – Joe D Aug 31 '20 at 23:26
-
I have added more details and a better alternative. – aled Sep 02 '20 at 17:21
-
I did actually add the tags , but get the below error, ERROR] Failed to execute goal org.mule.tools.maven:mule-maven-plugin:3.4.0:deploy (default-deploy) on project staging-nova: Execution default-deploy of goal org.mule.tools.maven:mule-maven-plugin:3.4.0:deploy failed: MessageBodyReader not found for media type=text/plain;charset=utf-8, type=class org.mule.tools.client.arm.model.Environments, genericType=class org.mule.tools.client.arm.model.Environments. -> [Help 1] [ERROR] Can you please advise – Joe D Sep 02 '20 at 21:04
-
Did you create the connected app in access management first? I don't see the cause of the error in that. Try running maven with -X for debug information. – aled Sep 02 '20 at 21:24
-
Yes , the App is created beforehand,The Debug information shows the same failure – Joe D Sep 02 '20 at 23:51
-
Looks like it received an error message but it is not showing it. Maybe the connected app doesn't have the right permissions for CloudHub deployment? – aled Sep 03 '20 at 17:16
-
1Yes the permissions were the issue.it worked after i added the below permissions , Design Center Developer , Cloudhub Organization Admin Thanks a lot for your help! – Joe D Sep 17 '20 at 17:06
-
Thanks for sharing the permissions needed. – aled Sep 17 '20 at 18:16