Skip to content

Commit

Permalink
Update ClientCredentialsConfig in MPClientFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgxvii committed Nov 28, 2024
1 parent 65cba74 commit f003e00
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ class MPClientFactory(
val customTokenUrl = config.auth.authUrl

val mpClientConfig = MPClient.Config().apply {
url = baseUrl

auth {
val authConfig = ClientCredentialsConfig(
tokenUrl = customTokenUrl,
clientId = clientId,
clientSecret = clientSecret,
additionalParameters = mapOf("audience" to "res_ManagementPortal"),
audience = "res_ManagementPortal",
).copyWithEnv()

return@auth clientCredentials(
Expand Down

0 comments on commit f003e00

Please sign in to comment.