Unverified Commit b948479d authored by Joe Hoyle's avatar Joe Hoyle Committed by GitHub
Browse files

Merge pull request #297 from humanmade/docs/session-token

Add docs for configuring a session token
parents d93f0351 e4e5dcef
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
=======