Skip to content

Commit 5fafaa5

Browse files
feat(api): add per endpoint security
1 parent 1813964 commit 5fafaa5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 45
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-46f433f34d440aa1dfcc48cc8d822c598571b68be2f723ec99e1b4fba6c13b1e.yml
33
openapi_spec_hash: 5b5cd728776723ac773900f7e8a32c05
4-
config_hash: 0892e2e0eeb0343a022afa62e9080dd1
4+
config_hash: 83522e0e335cf983f8d2119c1f2bba18

finch-java-core/src/test/kotlin/com/tryfinch/api/core/ClientOptionsTest.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ internal class ClientOptionsTest {
1919
@Test
2020
fun toBuilder_whenOriginalClientOptionsGarbageCollected_doesNotCloseOriginalClient() {
2121
var clientOptions =
22-
ClientOptions.builder().httpClient(httpClient).accessToken("My Access Token").build()
22+
ClientOptions.builder()
23+
.httpClient(httpClient)
24+
.accessToken("My Access Token")
25+
.clientId("4ab15e51-11ad-49f4-acae-f343b7794375")
26+
.clientSecret("My Client Secret")
27+
.build()
2328
verify(httpClient, never()).close()
2429

2530
// Overwrite the `clientOptions` variable so that the original `ClientOptions` is GC'd.

0 commit comments

Comments
 (0)