Welcome to the Adobe Developer Community! Connect with peers to ask questions and share best practices.
Recently active
I have been using this example using `@adobe/jwt-auth` to try and authenticate my external service to invoke my Project Firefly app.My config is like... export default { credentials: { clientId : 'client id', technicalAccountId : 'account id', orgId : 'org', clientSecret : 'secret', metaScopes : 'ent_user_sdk', // This comes from the example privateKey : '-----BEGIN PRIVATE KEY-----\n' + 'My Private Key/n' + '-----END PRIVATE KEY-----\n', }, }; When I try to auth now I get the error...The metascopes in the JWT are not a subset of the metascopes in the bindingI'm not actually sure what a metascope is and how I can find which metascopes are valid.ThanksOliver
maybe I missed a point, but how is it intended to move from a "dev" workspace to "staging" and later "production"? assume I have a local directory with all my files and working in a dev environment, what are the next steps?I assume that I just change the "aio env" by running "aio app use <mydesiredworkspace.json>" and then deploy the app.is this the right way to do it?
I have a simple webapp and have used react router, however within the application the url changes to the route part which is not found by firefly.Here is the webapp with links <Router> <div> <ul> <li> <Link to='/'>Home</Link> </li> <li> <Link to='/button'>Button</Link> </li> </ul> <hr /> <Switch> <Route exact path='/'> <Home/> </Route> <Route path='/button'> <ButtonDemo /> </Route> </Switch> </div> </Router> The URL on navigation is https://experience.adobe.com/?devMode=true#/@ags1008/custom-apps/button which resultsin Error 408 Request Timeout.&n
I have been asked to explore Project Firefly and various uses of it and I'm struggling to understand how to authenticate this call. I'm only at the very beginning of exploration so I have probably missed something and was hoping someone could point me in the right direction.I have created a new generic action (eventually this will connect with Adobe Target but just keeping it simple for now). This new action will be invoked by a webhook from a CMS system that we use. When new content is published it will call this action's URL and the action will handle the request. I just don't know how to authenticate the webhook.In postman I can put in my Bearer token (which I get from `aio login`) but obviously I can't put that into the webhook as it will change over time. How should I go about creating an action that can be authenticated from an external service like this?The only options I have from our CMS is either a basic auth username/password or values to put into custom headers.Thanks
To have a local storage during development on own environment (see https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/aio-local-action-with-error-on-aio-lib-state-init-and-put/qaq-p/377022) I thought I could use my access to Azure and setup containers to be used in the sdk init.But aio-lib-lifes failed with error like "request to url XXX failed - getaddrinfo EAI_AGAIN" and aio-lib-files succeded but I was not able to write any keys...is there any documentation on how to setup MS Azure to handle aio-lib-files and aio-lib-state? is it possible to use this access when running the "aio app run --local"? thanks for any help in this case!
Hi All,I am trying to build and deploy the reference project of 3rd Part CIF on Adobe IO console using https://github.com/adobe/commerce-cif-graphql-integration-reference/tree/dependabot/npm_and_yarn/decompress-4.2.1But facing below error while deploying it on Adobe IO console:Thanks in Advance!!!
I just run an "aio app undeploy" after changing the manifest.yaml and had the following error:maybe it tries to "undeploy" the items according to the new values in the manifest.yaml but not what has been deployed? don't know what problems that might cause - I assume that if all alarm-triggers, rules and actions change the name in manifest.yaml, they would just run again (and throwing an error then stopping?) maybe other issues?
I see a strange error when changing my triggers/rules using whisk alarms/interval. Example: I had a fully running action (interval 5 mins) and wanted to change the interval. after "aio app undeploy" I changed just the "interval" and deployed again, running into issues (see screenshot). then I played around with names of triggers/rules and interval - suddenly running again. There is no obvious spelling mistake in the manifest.yaml so I think there must be another issue. see the list here:Looking closer at the entries I can see that it tryes to run actions with "nodejs:10" (failing) sometimes changeing to "nodejs:12" (success). in the manifest.yaml the action in question has "runtime: 'nodejs:12'" as parameter, maybe that is the issue? but why does it change to "nodejs:10"? any option to force using only "nodejs:12"?Here are the ID's of the last 5 entries in case somebody wants to have a closer look: success: 3211537210944900915372109449000dsuccess: b929585cefc74d43a9585cefc72d4336a
I want to check access credentials within an action of a firefly app. I can see the bearer token in the params, but how can I exctract any information about the user or access credentials? best would be to know what product profiles the user has to make a check against needed permissions. is there any way to retrieve more information about the user to which the bearer token belongs?
is it possible to access the data saved in the .env file within the app? eg. I have a screen and I want to access data saved in the .env file - basically to make a check. or do I really need to write an action for this?
Having an app scren, is it possible to use the libraries aio-lib-state or aio-lib-files and access the data? eg. I want to have some "basic logs" save somewhere and display it on an app screen (component). or do I need to write an action fetching the desired data and then display the response?
Looking at the Adobe Launch API there is a subscription service to register a callback request. the definition of the API reguest can be found here: https://developer.adobelaunch.com/api/reference/1.0/callbacks/create/ I really love the idea of registering my own url within those callbacks, mainly because @jexner wrote a blog about: https://webanalyticsfordevelopers.com/2020/04/07/using-audit-events-in-launch/ the first idea was to expose one of my action to public so that I can be used to register as url in a launch callback. but how to handle "authentication"? and how to prevent somebody else calling my action? I would need to do all the checks about permission within the action itself which seems far too complicated... having more insights about Firefly and triggers/rules within AIO, I assume that the funcationality of those callbacks are based on the same technology as the Firefly rules. basically it creates sort of a "rule" and invoces an action
We have created a property in Adobe I/O runtime and got the namespace vale. But when we are trying to run the below command getting the HTTP Status code 404. Could you please help here.
Hi Adobe,We have got access to I/O runtime beta and received the namespaces for our runtime instances.By following the documentation we configured the aio CLI and were able to upload and invoke a simple action.However I believe we are missing one step in the configuration and we never got runtime connected to our I/O console integration.When we are trying to retrieve the integrations from our I/O sandbox instance via the aio console:list-integrations command we get the following error:» Error: The value "null" is invalid for option "passphrase"We could go around this by generating an access token first with the aio jwt-auth:access-token command.After that we were able to list out the integrations but when we try to run aio console select-integration ORGID_INTID we got the following error:» Error: Cannot retrieve integration: https://api.adobe.io/runtime/admin/namespaces/ORG_ID/INT_ID (404 Not Found)Of course we replaced the ORGID_INTID with the actual values from the nam
I gave an issue somewhere in my action after "aio app deploy". the action is working fine on local "aio app run", but not in deploy. any chance I can see the debug of the action somewhere when app is deployed?
Given an "action A" is running and I want to call (based on conditions) different other actions (from within the same app), what is the best way to achieve this?1) use node-fetch and the action name?2) release an event and the other action listens to? remark: I can't use sequencing since I don't know what the second acrion is. the second action depends on calculation in the first action. if 2), how can I trigger such an event and how can the "listener"? update the manifest.yml?thanks in advance for any help!
I tried to add openwhisk alarms to my app using /whisk.system/alarms https://github.com/AdobeDocs/adobeio-runtime/blob/33d0979a45b9e35e8addaad7e97dfb00f8ea5e12/reference/prepackages.md and added a new trigger to my manifest.yml file as following: triggers: myIntervalTest: feed: /whisk.system/alarms/interval inputs: minutes: '5' start-date: "2020-08-30T19:30:00.000Z" stop-date: "2020-08-30T21:30:00.000Z" payload: "{}" and running local dev server with "aio app run --local" I get the following error message: OpenWhiskError: POST http://localhost:3233/api/v1/namespaces/whisk.system/actions/alarms/interval?blocking=true Returned HTTP 403 (Forbidden) --> "The supplied authentication is not authorized to access 'whisk.system/alarms'." Question 1: what do I need to change to get proper authentication? on the other hand, it runs leaving out the "--local" parameter with the follow
I was trying to use the aio-lib-state https://github.com/adobe/aio-lib-state and was running into different issues on my local maching. Issues on "init"first, I tryed to include just the sdk and init storage using the following code in my simple action: const stateLib = require('@adobe/aio-lib-state') const state = await stateLib.init() but as soon as I trigger the action from the generic action UI, I get the following error in debugger: error 403 - unauthorized request it looks as it is trying to contact the Adobe API https://adobeio.adobeioruntime.net/apis/tvm using the "guest" namespace.To fix this, I updated "manifest.yml" to include the needed vars and provide them as params to my action: THIS_AIO_runtime_auth: $AIO_runtime_auth THIS_AIO_runtime_namespace: $AIO_runtime_namespace and in the action I changed the init to the following code: const state = await stateLib.init({ ow: { namespace:params.THIS_AIO_runtime_namespac
Hi Team, We would like to use a scheduler job in firefly app, we found the following option https://github.com/apache/openwhisk-package-alarms is there any alternate option in firefly?
Hi all. have a question regarding aio-lib-state: https://github.com/adobe/aio-lib-statewhat is the expiry of a key I set in an action? is the state cleared after an action or persits for a given time?example: action1 sets a key to the state, can a action2 get the value when running later (and independend).
Does anybody know how to make Adobe Analytics addable in Adobe Developer Console? We are using a sandbox with Adobe Analytics added. Thanks
We successfully implemented a Firefly App that fetches data from an external API and writes data into Adobe Analytics (using the old API 1.4). This works perfekt since the action can use the UI-User credentials (read from params) like this: const resHeaders = { "authorization": params.__ow_headers["authorization"], "x-api-key": params.__ow_headers["x-api-key"], "w-gw-ims-org-id": params.__ow_headers["w-gw-ims-org-id"], "x-api-key": params.__ow_headers["x-api-key"] } but where does the action gets the credentials if there is no UI providing the params? what "user/key" does it have to execute requests against Analytics API? or can I somewhere add credentials to manually set the desired values?Thanks a lot for the support!
Working on an app with following steps1) fetch data from external API2) write data to Adobe Analytics currently I only have one action that both makes the fetch request and later the push data request. but I think it might be better to have 2 seperate actions, one for the data fetch and the other for the push data. basically passing data to second action (temp storage?) and second actions makes the data push.this way I might re-use the second action for other data pushes later on - just handing over data and some parameters for the data push and done. but I could as well write modules that are included in the single actions and re-use those for other actions. any feedback what is the better approach? having a single "workflow" approach (get data and push) in one action or separate? if separate, any tips how to hand over the data?
Hi, I want to integrate Kafka with Adobe I/O Runtime so that I can send the data from Kafka via Adobe I/O Runtime to Adobe Campaign Standard. Can somebody please help me how to do this? Any kind of help would be highly appreciated. 🙂
is there an easy way to access the key/values from the env file within the app or within the actions? or do I need to install a node module that handles the env files?
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.