Skip to content

Commit

Permalink
Handle S3 token field on Kino.FS
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Nov 16, 2023
1 parent 4f91965 commit ba9b7d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/kino/fs.ex
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ defmodule Kino.FS do
region: file_spec.region,
endpoint: file_spec.bucket_url,
access_key_id: file_spec.access_key_id,
secret_access_key: file_spec.secret_access_key
secret_access_key: file_spec.secret_access_key,
# Token field is only available on v0.12 onwards
token: Map.get(file_spec, :token)
]
) do
{:ok, entry} -> entry
Expand Down

0 comments on commit ba9b7d9

Please sign in to comment.