Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the POC of uploading default asset(not official PR) #1933

Closed
wants to merge 0 commits into from

Conversation

Cccccrystall
Copy link
Contributor

The current implementation of uploading default assets: What I've done so far is put the two requests to upload the assets into a bash file so that the assets in the zip package can be uploaded to the website by executing the init.sh file. However when sending a request, we need to obtain the jwt token, which make it difficult to realize it in the docker. During my test, I got this token from the web page after logging in.

A potential solution: When I do log in action, I notice that the front end sends a lot of requests with jwt tokens. Can we implement the request to upload assets through Angular? Just like the getAllResources defined in base-asset-links.direction.ts, maybe we could get the zip list of default assets to upload with getAllDefaultAssets. Then loop through the actions of the two buttons, performPreview and performImport(). I wonder if this is possible? Or is there a way to securely acquire jwt tokens during the deployment phase of docker?

PR introduces (a) breaking change(s): no

PR introduces (a) deprecation(s): no

@github-actions github-actions bot added the installer Affects the StreamPipes installer label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installer Affects the StreamPipes installer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant