Skip to content

Commit 6495f35

Browse files
release: 8.0.1 (#565)
* Remove authorization header handling from ClientOptions Removed authorization header logic for clientId and accessToken. * release: 8.0.1 --------- Co-authored-by: Jon Harrell <4829245+jharrell@users.noreply.github.com> Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 9e808c9 commit 6495f35

5 files changed

Lines changed: 12 additions & 22 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "8.0.0"
2+
".": "8.0.1"
33
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 8.0.1 (2026-06-25)
4+
5+
Full Changelog: [v8.0.0...v8.0.1](https://github.com/Finch-API/finch-api-java/compare/v8.0.0...v8.0.1)
6+
37
## 8.0.0 (2026-06-22)
48

59
Full Changelog: [v7.10.0...v8.0.0](https://github.com/Finch-API/finch-api-java/compare/v7.10.0...v8.0.0)

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<!-- x-release-please-start-version -->
44

5-
[![Maven Central](https://img.shields.io/maven-central/v/com.tryfinch.api/finch-java)](https://central.sonatype.com/artifact/com.tryfinch.api/finch-java/8.0.0)
6-
[![javadoc](https://javadoc.io/badge2/com.tryfinch.api/finch-java/8.0.0/javadoc.svg)](https://javadoc.io/doc/com.tryfinch.api/finch-java/8.0.0)
5+
[![Maven Central](https://img.shields.io/maven-central/v/com.tryfinch.api/finch-java)](https://central.sonatype.com/artifact/com.tryfinch.api/finch-java/8.0.1)
6+
[![javadoc](https://javadoc.io/badge2/com.tryfinch.api/finch-java/8.0.1/javadoc.svg)](https://javadoc.io/doc/com.tryfinch.api/finch-java/8.0.1)
77

88
<!-- x-release-please-end -->
99

@@ -24,7 +24,7 @@ Use the Finch MCP Server to enable AI assistants to interact with this API, allo
2424
2525
<!-- x-release-please-start-version -->
2626

27-
The REST API documentation can be found on [developer.tryfinch.com](https://developer.tryfinch.com/). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.tryfinch.api/finch-java/8.0.0).
27+
The REST API documentation can be found on [developer.tryfinch.com](https://developer.tryfinch.com/). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.tryfinch.api/finch-java/8.0.1).
2828

2929
<!-- x-release-please-end -->
3030

@@ -35,7 +35,7 @@ The REST API documentation can be found on [developer.tryfinch.com](https://deve
3535
### Gradle
3636

3737
```kotlin
38-
implementation("com.tryfinch.api:finch-java:8.0.0")
38+
implementation("com.tryfinch.api:finch-java:8.0.1")
3939
```
4040

4141
### Maven
@@ -44,7 +44,7 @@ implementation("com.tryfinch.api:finch-java:8.0.0")
4444
<dependency>
4545
<groupId>com.tryfinch.api</groupId>
4646
<artifactId>finch-java</artifactId>
47-
<version>8.0.0</version>
47+
<version>8.0.1</version>
4848
</dependency>
4949
```
5050

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repositories {
88

99
allprojects {
1010
group = "com.tryfinch.api"
11-
version = "8.0.0" // x-release-please-version
11+
version = "8.0.1" // x-release-please-version
1212
}
1313

1414
subprojects {

finch-java-core/src/main/kotlin/com/tryfinch/api/core/ClientOptions.kt

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -527,21 +527,7 @@ private constructor(
527527
headers.put("X-Stainless-Runtime-Version", getJavaVersion())
528528
headers.put("X-Stainless-Kotlin-Version", KotlinVersion.CURRENT.toString())
529529
headers.put("Finch-API-Version", "2020-09-17")
530-
clientId?.let { username ->
531-
clientSecret?.let { password ->
532-
if (!username.isEmpty() && !password.isEmpty()) {
533-
headers.put(
534-
"Authorization",
535-
"Basic ${Base64.getEncoder().encodeToString("$username:$password".toByteArray())}",
536-
)
537-
}
538-
}
539-
}
540-
accessToken?.let {
541-
if (!it.isEmpty()) {
542-
headers.put("Authorization", "Bearer $it")
543-
}
544-
}
530+
// We replace after all the default headers to allow end-users to overwrite them.
545531
headers.replaceAll(this.headers.build())
546532
queryParams.replaceAll(this.queryParams.build())
547533

0 commit comments

Comments
 (0)