Links

4EVERLAND STS API

Welcome to the 4EVERLAND Security Token Service API

Introduction

The 4EVERLAND Security Token Service is a service designed to generate temporary credentials, allowing you to request temporary credentials for partial or even full privileges for other users or a specified user.
More information about STS can be found at AWS S3 STS.

How to use

This is obtained by taking the API Secret and the API Key from the Master key and sending them to the endpoint. By default, all 4EVERLAND STS requests are sent to https://endpoint.4everland.co.
Javascript example:
const {STSClient, AssumeRoleCommand} = require('@aws-sdk/client-sts')
​
const stsClient = new STSClient({
endpoint: 'https://endpoint.4everland.co',
region: 'us-west-1',
credentials: {
accessKeyId: 'Your api key.',
secretAccessKey: 'Your api secret.',
}
});
​
const params = {
RoleSessionName: "only-put-object",
DurationSeconds: 3600,
Policy: `{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:AbortMultipartUpload"
],
"Resource": [
"arn:aws:s3:::your-bucket-name/your-directory/*"
]
}
]
}`
};
​
​
stsClient.send(new AssumeRoleCommand(params)).then(function (data) {
console.log(data.Credentials)
});

How to get the Master Key

Click on Bucket> Access key> Master-Key
Copy API Key and API Secret
The API Secret can be reset if there is a security breach, the Master key cannot be deleted.
If you have any questions, please join our Discord server, or send us an email at [email protected].