Commit e4e5dcef authored by John Blackbourn's avatar John Blackbourn
Browse files

Add docs for configuring a session token.

parent d93f0351
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -191,13 +191,26 @@ Digital Ocean Spaces, Scaleway and others. You can configure the endpoint using
```php
// Filter S3 Uploads params.
add_filter( 's3_uploads_s3_client_params', function ( $params ) {
	$params['endpoint'] = 'https://your.endpoint.com;
	$params['endpoint'] = 'https://your.endpoint.com';
	$params['use_path_style_endpoint'] = true;
	$params['debug'] = false; // Set to true if uploads are failing.
	return $params;
} );
```

Temporary Session Tokens
=======

If your S3 access is configured to require a temporary session token in addition to the access key and secret, you should configure the credentials using the following code:

```php
// Filter S3 Uploads params.
add_filter( 's3_uploads_s3_client_params', function ( $params ) {
	$params['credentials']['token'] = 'your session token here';
	return $params;
} );
```

Offline Development
=======