Skip to content

Commit c5a0e15

Browse files
update for client app oauth endpoint (#176)
* update for client app oauth endpoint * cleanup
1 parent d2fad3b commit c5a0e15

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README_discovery.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ The agents read their configuration from a YAML files or optionally from an envi
9191
| MULESOFT_AUTH_LIFETIME | mulesoft.auth.lifetime | The session lifetime. The agent will automatically refresh the access token as it approaches the end of its lifetime | 60m |
9292
| MULESOFT_AUTH_PASSWORD | mulesoft.auth.password | The password for the Mulesoft Anypoint username created for this agent | |
9393
| MULESOFT_AUTH_USERNAME | mulesoft.auth.username | The Mulesoft Anypoint username created for this agent | |
94-
| MULESOFT_AUTH_CLIENTID | mulesoft.auth.clientID | The client id for the environment the agent will connect to | |
95-
| MULESOFT_AUTH_CLIENTSECRET | mulesoft.auth.clientSecret | The client secret for the environment the agent will connect to | |
94+
| MULESOFT_AUTH_CLIENTID | mulesoft.auth.clientID | The client id of a defined connected app with all of the necessary permssions | |
95+
| MULESOFT_AUTH_CLIENTSECRET | mulesoft.auth.clientSecret | The client secret of a defined connected app with all of the necessary permssions | |
9696
| MULESOFT_CACHEPATH | mulesoft.cachePath | Path entry to store stateful cache between agent invocations | _/tmp_ |
9797
| MULESOFT_DISCOVERYIGNORETAGS | mulesoft.discoveryIgnoreTags | Comma-separated black list of tags that, if any are present, will prevent an API being publised to Amplify Central. Take precedence over MULESOFT_DISCOVERYTAGS | (empty tag list) |
9898
| MULESOFT_DISCOVERYTAGS | mulesoft.discoveryTags | Comma-separated list of tags that, if any are present, will allow an API to be publised to Amplify Central. All APIs are discovered if not tags are specified | (empty tag list) |

README_traceability.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ The agents read their configuration from a YAML files or optionally from an envi
5858
| MULESOFT_AUTH_LIFETIME | mulesoft.auth.lifetime | The session lifetime. The agent will automatically refresh the access token as it approaches the end of its lifetime | 60m |
5959
| MULESOFT_AUTH_PASSWORD | mulesoft.auth.password | The password for the MuleSoft Anypoint username created for this agent | |
6060
| MULESOFT_AUTH_USERNAME | mulesoft.auth.username | The MuleSoft Anypoint username created for this agent | |
61-
| MULESOFT_AUTH_CLIENTID | mulesoft.auth.clientID | The client id for the environment the agent will connect to | |
62-
| MULESOFT_AUTH_CLIENTSECRET | mulesoft.auth.clientSecret | The client secret for the environment the agent will connect to | |
61+
| MULESOFT_AUTH_CLIENTID | mulesoft.auth.clientID | The client id of a defined connected app with all of the necessary permssions | |
62+
| MULESOFT_AUTH_CLIENTSECRET | mulesoft.auth.clientSecret | The client secret of a defined connected app with all of the necessary permssions | |
6363
| MULESOFT_CACHEPATH | mulesoft.cachePath | Path entry to store stateful cache between agent invocations | _/tmp_ |
6464
| MULESOFT_ENVIRONMENT | mulesoft.environment | The MuleSoft Anypoint Exchange the agent connects to, e.g. Sandbox. | |
6565
| MULESOFT_ORGNAME | mulesoft.orgName | The MuleSoft Anypoint Business Unit the agent connects to | |

pkg/anypoint/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func (c *AnypointClient) GetAccessToken() (string, *User, time.Duration, error)
153153
"password": c.password,
154154
}
155155
if c.clientID != "" {
156-
url = c.baseURL + "/accounts/oauth2/token"
156+
url = c.baseURL + "/accounts/api/v2/oauth2/token"
157157
body = map[string]string{
158158
"grant_type": "client_credentials",
159159
"client_id": c.clientID,

0 commit comments

Comments
 (0)