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

Browser client for Pelican #344

Closed
bbockelm opened this issue Nov 7, 2023 · 1 comment
Closed

Browser client for Pelican #344

bbockelm opened this issue Nov 7, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@bbockelm
Copy link
Collaborator

bbockelm commented Nov 7, 2023

An important client for Pelican is going to be the browser.

That is, a user should be able to navigate to the director UI, click on a download button, and be taken to a page where they can type in an object name and hit "go". I'd like to have it as a visible demo for December.

The ultimate goal would be some sort of small JavaScript library that someone can embed in their webpage's code. It'd export a function that contacts the director and gets redirected to a new location. The director UI would be a simple wrapper around this library.

For this ticket, I'd like to stick to public data: attempts to access private data should just end in an error.

@bbockelm bbockelm added the enhancement New feature or request label Nov 7, 2023
@bbockelm bbockelm added this to the v7.3.0 milestone Nov 7, 2023
@CannonLock
Copy link
Contributor

CannonLock commented Nov 14, 2023

Code is here -> https://github.com/PelicanPlatform/web-client

I have set up this package here -> https://www.npmjs.com/package/@pelicanplatform/web-client

The package includes the Client class which powers the UI in the example here -> https://pelicanplatform.org/web-client/

Current issue is that for these un auth'd requests we need the response header: Access-Control-Allow-Origin: * from both the director and the cache.

Things get trickier with auth but we can discuss that tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants