alexa-skills-kit-sdk-for-nodejs
alexa-skills-kit-sdk-for-nodejs copied to clipboard
Simplify SMAPI client instantiation.
Using the SMAPI SDKs has high friction. There are three manual steps:
- Create a Client ID (store somewhere safe)
ask util generate-lwa-tokens- Manually load
~/.ask/cli_configand include when instantiating the client.
Every developers has to do this if they want to use the SMAPI SDK.
Can we make it as simple as the AWS CLI?
# writes ~/.aws/config
aws configure
const credentials = new AWS.SharedIniFileCredentials({profile: 'work-account'});
new S3.Bucket({ credentials });
Desired Experience
# writes ~/.ask/cli_config
ask configure
import * as ASK from 'ask-smapi-sdk';
const credentials = new ASK.CliConfigCredentials({profile: 'work-account'});
new ASK.SMAPI({ credentials });
+1 There is no doubt that a shared file for credential management would greatly simplify the authorization management.
In the meantime, ASK doesn't have the IAM part as AWS has. We need to investigate how much value the ClientID has for skill developers. Because the credential file defined by CLI is using its own ClientID. smapi-sdk has clientId as the input though.
Is this issue/feature-request still relevant? We are working on prioritization of relevant issues and cleanup of rest. If we don’t hear back in 2 weeks, we will assume that the issue is not relevant and we will close it.