You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, if your context does not support the properties needed for the OAuth, or JWT IMS plugins, it will show this error: Error: cannot generate token because no plugin supports configuration
This error is not very descriptive. There is more info when prefixing this environment variable DEBUG=@adobe/aio-lib-ims:token-helper before your command.
The issue is, if it is missing properties for a plugin, that's ok, it can match for another plugin. If it does not match all plugins, we need to print out the error message for all the plugins (missing key(s)), so the user can see and filter for themselves.
Expected
When an ims context does not match any IMS plugin, this error is shown:
Right now, if your context does not support the properties needed for the OAuth, or JWT IMS plugins, it will show this error:
Error: cannot generate token because no plugin supports configuration
This error is not very descriptive. There is more info when prefixing this environment variable
DEBUG=@adobe/aio-lib-ims:token-helper
before your command.The IMS plugins do check for missing keys, and we can expose the missing keys in aio-lib-ims for reporting: https://github.com/adobe/aio-lib-ims-jwt/blob/f5028aa800c41f53aac663c4ccdcbae4c672263c/src/ims-jwt.js#L39
The issue is, if it is missing properties for a plugin, that's ok, it can match for another plugin. If it does not match all plugins, we need to print out the error message for all the plugins (missing key(s)), so the user can see and filter for themselves.
Expected
When an ims context does not match any IMS plugin, this error is shown:
Actual
When an ims context does not match any IMS plugin, this error is shown:
Error: cannot generate token because no plugin supports configuration
The text was updated successfully, but these errors were encountered: