Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Passing token into javascript context #233

Open
zeppaman opened this issue Mar 13, 2020 · 0 comments
Open

Passing token into javascript context #233

zeppaman opened this issue Mar 13, 2020 · 0 comments
Assignees

Comments

@zeppaman
Copy link
Member

expected

The javascript lambdas allow us to add custom code at runtime, like the example on demo where we can compute latitude. inside this context, we could make a request to the public Rawcms but we miss an authentication token. we would have a "token" variable to be used on making HTTP call with the same user of the original caller.

todo

inside the javascript engine, the authentication header must be added as variable to the javascript context.
The place where do the change is
https://github.com/arduosoft/RawCMS/blob/develop/RawCMS.Library/Lambdas/JsDispatcher.cs
and
https://github.com/arduosoft/RawCMS/blob/develop/Plugins/RawCMS.Plugins.Core/Controllers/JsLambdaController.cs

acceptance criteria

we have a lambda that use the token parameter to call another api passing the header

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants