API-Auth Examples
1. Test Your Manifest
custom-header
truebit start-api api-auth/custom-header/custom-header.manifest.json api-auth/custom-header/custom-header.input.json custom-header 'username:foo, password:bar'truebit start-api api-auth/basic-auth/basic-auth.manifest.json api-auth/basic-auth/basic-auth.input.json basic-auth 'username:<username>,password:<password>'truebit start-api api-auth/aws-signature/aws-signature.manifest.json api-auth/aws-signature/aws-signature.input.json aws-signature "accessKey:AKIA2VXUSRQO3CTJ5UH5,secretKey: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"2. Create The Truebit API Task
custom-header
truebit create-api api-auth/custom-header/custom-header.manifest.jsontruebit create-api api-auth/basic-auth/basic-auth.manifest.json3. Deploy the Truebit API Task
4. Deploy the Authentication Credentials
custom-header
5. Execute The Truebit API Task
Last updated
Was this helpful?