Skip to content

Commit

Permalink
Merge pull request #288 from RADAR-base/feature/set-client-url
Browse files Browse the repository at this point in the history
Allow setting URLs for REST clients via env vars
  • Loading branch information
pvannierop authored Oct 31, 2024
2 parents 7c3ae93 + 121fbb0 commit a47a307
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ data class RestSourceClient(
fun withEnv(): RestSourceClient = this
.copyEnv("${sourceType.uppercase(Locale.US)}_CLIENT_ID") { copy(clientId = it) }
.copyEnv("${sourceType.uppercase(Locale.US)}_CLIENT_SECRET") { copy(clientSecret = it) }
.copyEnv("${sourceType.uppercase(Locale.US)}_CLIENT_AUTH_URL") { copy(authorizationEndpoint = it) }
.copyEnv("${sourceType.uppercase(Locale.US)}_CLIENT_TOKEN_URL") { copy(tokenEndpoint = it) }
}
2 changes: 1 addition & 1 deletion authorizer-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "authorizer-app",
"version": "4.4.5",
"version": "4.4.6",
"description": "Simple app to authorize to collect data from third party services ",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@Suppress("ConstPropertyName")
object Versions {
const val project = "4.4.5"
const val project = "4.4.6"

const val java = 17

Expand Down

0 comments on commit a47a307

Please sign in to comment.