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

Missing auth token in download requests #48

Closed
darkleizar opened this issue Mar 5, 2024 · 2 comments
Closed

Missing auth token in download requests #48

darkleizar opened this issue Mar 5, 2024 · 2 comments

Comments

@darkleizar
Copy link

With this configuration

script...

const accessToken = useCookie('accessToken').value
const request = {
  baseUrl: "/api/auth/vuefinder/"+ currentId,
  headers: { Authorization: `Bearer ${accessToken}`, Accept :'application/json'}
}
const vuefinderFeatures = [
  'download',
  'search'
];

template...
<vue-finder id="vf" theme="light" :features="vuefinderFeatures" :request="request" :select-button="handleSelectButton"></vue-finder>

the download action is performed without the Bearer token

@n1crack
Copy link
Owner

n1crack commented Mar 5, 2024

#45

@n1crack
Copy link
Owner

n1crack commented Mar 26, 2024

since it is duplicated with the other issue, Im closing this. Im looking for the best solution for this issue. we need to figure out how can it be implemented for "stateless auths".

@n1crack n1crack closed this as completed Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants